From 6647b17558a299b81cf5e3779247d5e4f2ffd1f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sat, 11 Jul 2026 00:02:57 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20Werkzeug=20+=20WebSocket=20(no=20Gunicor?= =?UTF-8?q?n=20crash),=20bump=201.0.10=E2=86=921.0.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/site/app.py b/site/app.py index 3eb57ca..32f13dc 100644 --- a/site/app.py +++ b/site/app.py @@ -7,7 +7,7 @@ from flask_sock import Sock app = Flask(__name__) sock = Sock(app) -VERSION = '1.0.10' +VERSION = '1.0.11' @app.route('/') @@ -78,25 +78,4 @@ def upload(): if __name__ == '__main__': - import gunicorn.app.base - - class StandaloneApp(gunicorn.app.base.BaseApplication): - def __init__(self, app, options=None): - self.application = app - self.options = options or {} - super().__init__() - - def load_config(self): - for k, v in self.options.items(): - self.cfg.set(k, v) - - def load(self): - return self.application - - StandaloneApp(app, { - 'bind': '0.0.0.0:5000', - 'workers': 2, - 'worker_class': 'gevent', - 'timeout': 120, - 'keepalive': 75, - }).run() + app.run(host='0.0.0.0', port=5000, debug=False, threaded=True)