You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using socketio in a multithreaded app using the threading module. When updating from python-engineio 3.11.1 to python-engineio 3.11.2, there is an apparent issue with initializing the SIGINT signal handler when the Client object is created. This happens only if it is made outside the main thread, as suggested by the official python docs. The exception launched is:
ValueError: signal only works in main thread
I've seen that the initialization was made only if the file was running as __main__ in previous versions and was changed due to issue #147 .
Is it considered a bad practice to use socketio in a multithreaded app? Or is there any reason to only use it in the main thread?
Hi!
I'm using
socketio
in a multithreaded app using thethreading
module. When updating frompython-engineio 3.11.1
topython-engineio 3.11.2
, there is an apparent issue with initializing the SIGINT signal handler when the Client object is created. This happens only if it is made outside the main thread, as suggested by the official python docs. The exception launched is:I've seen that the initialization was made only if the file was running as
__main__
in previous versions and was changed due to issue #147 .Is it considered a bad practice to use
socketio
in a multithreaded app? Or is there any reason to only use it in the main thread?The full traceback is as follows:
The text was updated successfully, but these errors were encountered: