Antoine Pitrou added the comment:
> 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
You're originally talking about socket._fileobject. I don't see what
that has to do with a listening socket being closed ("a server thread
waiting for clients").
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list