high volume/speed gethostbyaddr how?
Erno Kuusela
erno-news at erno.iki.fi
Sun May 5 12:33:35 EDT 2002
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.
-- erno
More information about the Python-list
mailing list