socket.gethostbyaddr() is slower than Christmas
jepler at unpythonic.net
jepler at unpythonic.net
Wed Jul 17 20:56:54 EDT 2002
On Wed, Jul 17, 2002 at 04:27:24PM -0600, Jason R. Mastaler wrote:
> On a certain Redhat-7.3 system, socket.gethostbyaddr() calls to the
> localhost are taking upwards of 30 seconds to return. What would
> account for such behavior? Is this a bug?
gethostbyname() is very little more than a wrapper around the standard
library function. I wouldn't expect Python to be the reason this is slow
for you, but instead I'd expect some kind of local configuration problem.
Jeff
More information about the Python-list
mailing list