tvassila at siac.com
Fri Jan 31 16:02:45 CET 2003
Use the asynchat module, more examples are in the medusa module, see
I have used timeoutsocket in production but had problems when combining it
with urllib2. The example code for an http client in medusa work fine.
<maxm at mxm.dk> To: python-list at python.org
Sent by: cc:
python-list-admin@ Subject: Re: URLLIB2
> Ok, but when urllib2 complete the connections normally returns a response
> (also the exception). In my case urllib2 remains on expectation mode
> (doesn't return).
That is probably beause the connection hangs.
There is a module called "timeoutsocket" or something like that, wich
stops the connetction after a certain time.
hilsen/regards Max M Rasmussen, Denmark
Fremtiden, videnskab, skeptiscisme og transhumanisme
More information about the Python-list