Skip to content

00458: test_ssl: Don't stop ThreadedEchoServer on OSError in ConnectionHandler #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025

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 <encukou@gmail.com>
@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