Thread-blocking (was: socket.gethostbyname() thread-safe?)

Michael Ströder michael at stroeder.com
Thu Apr 12 17:36:35 EDT 2001


Johannes Stezenbach wrote:
> 
> Michael Ströder <michael at stroeder.com> wrote:
> >The whole HTTP serving stuff seems to work just fine.

I could track down the problem a little bit more: The threads are
blocking if the user aborts the loading of the web page (using the
SocketServer.ThreadingMixIn). In this case an IOError exception is
raised which never reaches the appropriate handler thread. The
IOError exceptions show up after I stop my main thread. Any
solution?

Ciao, Michael.



More information about the Python-list mailing list