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 > properly).
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> <http://bugs.python.org/issue9156> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com