Skip to content

Conversation

@stratakis
Copy link
Member

If read() in the ConnectionHandler thread raises OSError (except ConnectionError), the ConnectionHandler shuts down the entire ThreadedEchoServer, preventing further connections.
It also does that for EPROTOTYPE in wrap_conn.

Make sure that the context manager is used, and remove the server.stop() calls from ConnectionHandler.

Backported from 3.12+:
python#126503

…onHandler

If `read()` in the ConnectionHandler thread raises `OSError` (except `ConnectionError`),
the ConnectionHandler shuts down the entire ThreadedEchoServer,
preventing further connections.
It also does that for `EPROTOTYPE` in `wrap_conn`.

Make sure that the context manager *is* used, and remove the `server.stop()`
calls from ConnectionHandler.

Backported from 3.12+:
python#126503

Co-authored-by: Petr Viktorin <[email protected]>
@stratakis stratakis merged commit 414cb75 into fedora-python:fedora-3.11 Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants