Re: gethostbyname blocking

2009-04-24 Thread marc wyburn
On Apr 23, 2:16 pm, Piet van Oostrum wrote: > > marc wyburn (MW) wrote: > >MW> Hi, I am writing anasynchronousping app to check if 1000s of hosts > >MW> are alive very quickly.  Everything works extremely quickly unless the > >MW> host name doesn't have a DNS record. > >MW> when calling socke

Re: gethostbyname blocking

2009-04-23 Thread Jean-Paul Calderone
On Thu, 23 Apr 2009 15:16:56 +0200, Piet van Oostrum wrote: marc wyburn (MW) wrote: MW> Hi, I am writing an asynchronous ping app to check if 1000s of hosts MW> are alive very quickly. Everything works extremely quickly unless the MW> host name doesn't have a DNS record. MW> when calling

Re: gethostbyname blocking

2009-04-23 Thread Piet van Oostrum
> marc wyburn (MW) wrote: >MW> Hi, I am writing an asynchronous ping app to check if 1000s of hosts >MW> are alive very quickly. Everything works extremely quickly unless the >MW> host name doesn't have a DNS record. >MW> when calling socket.gethostbyname if there is no record for the host

Re: gethostbyname blocking

2009-04-22 Thread Jean-Paul Calderone
On Wed, 22 Apr 2009 20:50:51 +0200, Christian Heimes wrote: Jean-Paul Calderone wrote: I'm not sure what the easiest way to determine whether Python has found gethostbyname_r or not on your system is. The configure script used to build Python will probably tell, but I doubt you have that lying

Re: gethostbyname blocking

2009-04-22 Thread Christian Heimes
Jean-Paul Calderone wrote: > I'm not sure what the easiest way to determine whether Python has found > gethostbyname_r or not on your system is. The configure script used to > build Python will probably tell, but I doubt you have that lying around. > You could just assume this is the case, since y

Re: gethostbyname blocking

2009-04-22 Thread marc wyburn
On Apr 22, 5:19 pm, Jean-Paul Calderone wrote: > On Wed, 22 Apr 2009 08:08:51 -0700 (PDT), marc wyburn > wrote: > >Hi, I am writing an asynchronous ping app to check if 1000s of hosts > >are alive very quickly.  Everything works extremely quickly unless the > >host name doesn't have a DNS record

Re: gethostbyname blocking

2009-04-22 Thread Jean-Paul Calderone
On Wed, 22 Apr 2009 08:08:51 -0700 (PDT), marc wyburn wrote: Hi, I am writing an asynchronous ping app to check if 1000s of hosts are alive very quickly. Everything works extremely quickly unless the host name doesn't have a DNS record. when calling socket.gethostbyname if there is no record

gethostbyname blocking

2009-04-22 Thread marc wyburn
Hi, I am writing an asynchronous ping app to check if 1000s of hosts are alive very quickly. Everything works extremely quickly unless the host name doesn't have a DNS record. when calling socket.gethostbyname if there is no record for the host the result seems to block all other threads. As an