How to avoid socket timeout
Matthew
miracle at paradise.net.nz
Thu Jan 24 16:28:00 EST 2002
More information about the Python-list mailing list
Thu Jan 24 16:28:00 EST 2002
- Previous message (by thread): How to avoid socket timeout
- Next message (by thread): How to avoid socket timeout
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think theres something in the windows registry, and also in the API. It's called Time To Live (TTL) this won't help much with time out but it'll reduce the chances of it happening. If I remember rightly, when a socket in Windows is trying to connect, it sends 4 connection request packet thingies, with a certain time between them, and if it doesn't receive an acknoledge packet, it times out. Each time a packet passes through a router, it's TTL (Time to Live) is decremented, if there's a blockage or bad routes, the packet might have to take an extra long route to get to the other computer. If you increase the TTL, this will stop timeout's in this situation. Also sometimes timeouts are caused by [cable] modems dialling, or sleeping equipment waking up. To avoid this, just eat the first couple of exceptions and try again ;) GBU Matthew ----- Original Message ----- From: "A" <printers at sendme.cz> To: <python-list at python.org>; <tutor at python.org>; <activepython at listserv.ActiveState.com> Sent: Friday, January 25, 2002 10:11 AM Subject: How to avoid socket timeout > Hi, > I use httplib modul and sometimes, if my dial up connection is > slow, receive > error: (10060, 'Operation timed out') > How can I increase the timeout? > Thank you for help. > Ladislav > > _______________________________________________ > ActivePython mailing list > ActivePython at listserv.ActiveState.com > http://listserv.ActiveState.com/mailman/listinfo/activepython >
- Previous message (by thread): How to avoid socket timeout
- Next message (by thread): How to avoid socket timeout
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list