Commit Graph

1 Commits

Author SHA1 Message Date
Harshit Chaudhary
a4342e9aa1 fix: catch OSError in websocket send to prevent server crash send_socket_catch_exception only caught ConnectionError and its
subclasses (ConnectionResetError, BrokenPipeError). When a client
  becomes unreachable mid-generation (laptop sleeps, drops off WiFi),
  the OS raises OSError: [Errno 113] No route to host (EHOSTUNREACH),
  which is a sibling of ConnectionError, not a subclass. It therefore
  escaped the handler, propagated through publish_loop, and could crash
  the entire server over a single dead client.
2026-06-15 01:55:17 +05:30