[Python-Dev] threads and gethostbyname

Fredrik Lundh fredrik@effbot.org
Wed, 14 Feb 2001 22:14:27 +0100


We have a Tkinter-based application that does DNS lookups
(using socket.gethostbyname) in a background thread.

Under 1.5.2, this worked without a hitch.  However, under
2.0, the same program tends to lock up on some computers.
I'm not 100% sure (it's a bit hard to debug), but it looks like
a global lock problem...

Any ideas?  Is this supposed to work at all?

Cheers /F