high volume/speed gethostbyaddr how?
Oleg Broytmann
phd at phd.pp.ru
Sun May 5 13:58:18 EDT 2002
On Sun, May 05, 2002 at 07:33:35PM +0300, Erno Kuusela wrote:
> In article <mailman.1020530648.16676.python-list at python.org>, Oleg
> Broytmann <phd at phd.pp.ru> writes:
>
> | On Sat, May 04, 2002 at 03:28:28PM +0200, Dan Polak wrote:
> || Good solution too but I didn't want the extra library so I went with
> || threads.
>
> | Be warned that standard resolver library is not thread-safe. Be careful,
> | be very careful.
>
> are you sure? it looks to me like a lock is used if the platform
> doesn't have a gethostbyname_r. of course, you won't get much
> of a speedup in this case, but it shouldn't malfunction.
Very well, then.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list