Mathias Panzenböck added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9156>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to