Author martin.panter
Recipients martin.panter, vstinner
Date 2017-07-01.01:26:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
These tests are supposed to:

1. Create a TCP server
2. Open a TCP connection
3. Run a custom connection handler (depending on the particular test) in a new thread
4. When the handler returns, the new thread should call “shutdown_request”
5. Shutdown_request closes the server’s connection socket
6. Shutdown_request sets an event for the main thread
7. Main thread waits for the above event

The stack trace indicates a thread is stuck at step 7. My guess is that step 5 has raised an exception, killing the thread rather than continuing to step 6. I suspect it is a “socket.close” call raising an asynchronous error such as ECONNRESET; see Issue 30319. A general fix for that problem might fix these test_socketserver hangs.
Date User Action Args
2017-07-01 01:26:22martin.pantersetrecipients: + martin.panter, vstinner
2017-07-01 01:26:22martin.pantersetmessageid: <>
2017-07-01 01:26:22martin.panterlinkissue30391 messages
2017-07-01 01:26:21martin.pantercreate