Replies: 1 comment
-
I don't really understand the question. The concurrency of your Flask endpoints is controlled by your web server. If you run a web server in threaded mode and you set the thread limit to 1, then your application will only be able to process one request at a time. In the context of your web server, Flask-SocketIO can be conceptually counted as one request. If your web server can only spawn one thread, then once a client connects over Socket.IO the web server will not be able to process any other clients (HTTP or Socket.IO) until that first Socket.IO connection is dropped. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I understand that @socketio.event is asynchronous, why @app.route is synchronous?
If I run with gunicron and set threads>1, will @app.route have any effect?
Beta Was this translation helpful? Give feedback.
All reactions