setsockopt and urllib
Steve Holden
sholden at holdenweb.com
Mon Dec 4 08:27:44 EST 2000
Look for the timeoutsocket module by Timothy O'Malley <timo at alum.mit.edu> --
sorry I don't have a URL to hand. This will raise errors on socket timeouts
in library code.
regards
Steve
Frank Neuber <frank.neuber at gmx.de> wrote in message
news:slrn92moue.hc.frank.neuber at mars.private.de...
> Hi group,
> I have to set special timeouts on receive and send calls in conjunction
with
> urllib-calls.
> Is there a simple solution to do this without modifying the urllib itself.
> For Example:
> I wish to set the timeout to 60 s for the following command:
> (tmpfile, hdr) = urllib.urlretrive(urlname)
> It is possible to to this with the socks module call
> setsockopt(SOL_SOCKET,SO_RCVTIMEO, ttime) over the urllib module.
>
> thanks in advance
> Frank
>
>
> --
> _/_/_/_/ _// _/ Frank Neuber
> _/ _/_/ _/ frank.neuber at gmx.de (private)
> _/_/_/ _/ _/ _/
> _/ _/ _/_/ neuber at opensource-systemberatung.de
> _/ _/ // http://www.opensource-systemberatung.de
>
More information about the Python-list
mailing list