In case of socket reconnection sometime multiple reconnect threads start running #1367
humayunajmal
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In case we enable reconnect , in socket io, Sometimes multiple reconnect threads start running. That happens if re-connection was done but quickly it disconnects at engine io level.
2024-07-23 18:26:56 | INFO | socket_jobs | _connect_websocket | Attempting WebSocket connection to wss://
2024-07-23 18:26:57 | INFO | socket_jobs | _connect_websocket | WebSocket connection accepted with {'sid': '-Cj2ohLMPAAIEzc2BJoi', '
upgrades': [], 'pingInterval': 25000, 'pingTimeout': 20000, 'maxPayload': 1000000}
2024-07-23 18:26:57 | INFO | socket_jobs | _handle_eio_connect | Engine.IO connection established
2024-07-23 18:26:57 | INFO | socket_jobs | _send_packet | Sending packet MESSAGE data 0{}
2024-07-23 18:26:57 | WARNING | socket_jobs | _read_loop_websocket | WebSocket connection was closed, aborting
2024-07-23 18:26:57 | INFO | socket_jobs | _read_loop_websocket | Waiting for write loop task to end
2024-07-23 18:26:57 | INFO | socket_jobs | _write_loop | Exiting write loop task
2024-07-23 18:26:57 | INFO | socket_jobs | _handle_eio_disconnect | Engine.IO connection dropped
2024-07-23 18:26:57 | INFO | socket_jobs | _handle_reconnect | Connection failed, new attempt in 10.00 seconds
2024-07-23 18:26:57 | INFO | socket_jobs | _read_loop_websocket | Exiting read loop task
2024-07-23 18:26:57 | DEBUG | socket_jobs | socket_job_receiver | Not able to connect to controller websocket channel. Establishing connection through heartbeat.
2024-07-23 18:26:57 | INFO | socket_jobs | generate_headers | generate_headers
2024-07-23 18:26:58 | INFO | socket_jobs | _handle_reconnect | Connection failed, new attempt in 10.00 seconds
if in re-connection attempt code reaches to this log message
self.logger.info('Reconnection successful')
Then this doesn't happen..
looks like in
code should check if reconnect thread is not active then start thread in background...
Beta Was this translation helpful? Give feedback.
All reactions