[Python-bugs-list] [ python-Bugs-614791 ] gethostbyname() blocks when threaded

noreply@sourceforge.net noreply@sourceforge.net
Wed, 25 Sep 2002 21:44:20 -0700


Bugs item #614791, was opened at 2002-09-25 23:44
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=614791&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Rob Green (rbgrn)
Assigned to: Nobody/Anonymous (nobody)
Summary: gethostbyname() blocks when threaded

Initial Comment:
I know this is because it is simply a wrapper for the libc 
gethostbyname, but it really, really hurts my app to have 
it block like this. I am requesting that by any means 
necessary, gethostbyname() not block when multiple 
threads call it simultaneously. It seriously ruins the 
ability to write effective network daemons in python, as it 
can take a very, very long time to get through even a 
small list of hostnames if one or a few of them need to 
timeout to be resolved.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=614791&group_id=5470