asynchat connection timeout

Brian Gough bjg at
Fri Aug 27 10:56:19 CEST 2004

Josh Close <narshe at> writes:

> I'm using asynchat and I'm getting an error 
> error: (110, 'Connection timed out')
> This is ok, but how do I set what the timeout is?

It is built on the socket module, which has these methods:

socket.getdefaulttimeout() -- get the default timeout value
socket.setdefaulttimeout() -- set the default timeout value

Brian Gough

Network Theory Ltd,
Publishing the Python Manuals ---

More information about the Python-list mailing list