This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author panzi
Recipients christian.heimes, panzi, pitrou
Date 2012-11-09.21:21:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352496062.15.0.535449315055.issue9156@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is that the other thread is blocked, waiting for new client connections. A common pattern for very simple server applications (like you write during exercises at universities) is:

2 threads:
 1. A server thread waiting for clients, maybe spawning even more threads for each connection.
 2. A small shell thread reading commands from stdin. When "quit" is read it closes the server socket, which shuts down the server (the server thread just notices that the socket was closed and shuts down properly).

This pattern we used all the time when writing exercises in Java. However, it seems to work quite differently in Python 3. I have to check if this problem still exists.
History
Date User Action Args
2012-11-09 21:21:02panzisetrecipients: + panzi, pitrou, christian.heimes
2012-11-09 21:21:02panzisetmessageid: <1352496062.15.0.535449315055.issue9156@psf.upfronthosting.co.za>
2012-11-09 21:21:02panzilinkissue9156 messages
2012-11-09 21:21:01panzicreate