Won't self.pubsub.subscribe in RedisManager._listen() raise exception? #1115
-
Hello, thanks for building such a good tool. I want to know whether the code python-socketio/src/socketio/redis_manager.py Lines 110 to 117 in de4d5b5 If it may raise exception, will the thread ( The problem I met is: once the server log shows I wondered It's because the publisher reconnected successfully, but the subscriber (which uses |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
Looking at this I think I agree that it is possible for the listening thread to die. But you should see a stack trace in your log if that was the case. But yes, this thread needs a handler to catch all exceptions and prevents the thread from dying. I will improve this. |
Beta Was this translation helpful? Give feedback.
-
I am using flask-socketio==5.2.0 and encounter the same issue. Is this issue confirmed with the root cause of thread dying? Do we have a way to gracefully handle this yet? |
Beta Was this translation helpful? Give feedback.
-
Added some more logs and this is what I got. Any emit events won't received after that, still trying to pinpoint the issue. |
Beta Was this translation helpful? Give feedback.
Looking at this I think I agree that it is possible for the listening thread to die. But you should see a stack trace in your log if that was the case.
But yes, this thread needs a handler to catch all exceptions and prevents the thread from dying. I will improve this.