fix: gunicorn gevent workers for WebSocket support, bump 1.0.22
Deploy loadtest / validate (push) Waiting to run
Deploy loadtest / validate (push) Waiting to run
This commit is contained in:
+5
-5
@@ -6,7 +6,7 @@ from flask_sock import Sock
|
||||
app = Flask(__name__)
|
||||
sock = Sock(app)
|
||||
|
||||
VERSION = '1.0.21'
|
||||
VERSION = '1.0.22'
|
||||
|
||||
|
||||
@app.route('/')
|
||||
@@ -50,7 +50,7 @@ if __name__ == '__main__':
|
||||
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'])
|
||||
'--worker-class', 'gevent',
|
||||
'--workers', '1',
|
||||
'--worker-connections', '1000',
|
||||
'--timeout', '300'])
|
||||
|
||||
Reference in New Issue
Block a user