00458: test_ssl: Don't stop ThreadedEchoServer on OSError in Connecti… · fedora-python/cpython@414cb75 · GitHub
Skip to content

Commit 414cb75

Browse files
miss-islingtonencukou
authored andcommitted
00458: test_ssl: Don't stop ThreadedEchoServer on OSError in ConnectionHandler
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>
1 parent 32f50bc commit 414cb75

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 12 additions & 5 deletions

0 commit comments

Comments
 (0)