feat: Gunicorn + HTTP POST (base64, retry), drop WebSocket, bump 1.0.19
Deploy loadtest / validate (push) Waiting to run

This commit is contained in:
2026-07-11 09:48:13 +04:00
parent c1faa60a37
commit 27da25c19e
3 changed files with 130 additions and 63 deletions
+8 -2
View File
@@ -7,7 +7,7 @@ from flask_sock import Sock
app = Flask(__name__)
sock = Sock(app)
VERSION = '1.0.18'
VERSION = '1.0.19'
@app.route('/')
@@ -70,4 +70,10 @@ def upload():
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=False, threaded=True)
import subprocess, sys
subprocess.run([sys.executable, '-m', 'gunicorn', 'app:app',
'--bind', '0.0.0.0:5000',
'--workers', '2',
'--threads', '4',
'--timeout', '300',
'--keep-alive', '5'])