I'm aware of that but what I need is to disconnect on demand. It will only
disconnect if needed, and not after a fixed time. By the way, I tried to set
the timeout to 0 while the socket is waiting for a response, but it didn't
work (and probably not supposed to work by design).
Thanks.
On Fri, Au
Do you set a socket timeout value via socket.setdefaulttimeout?
see: http://www.python.org/doc/2.6/library/socket.html#socket.setdefaulttimeout
~Gerdus
On Thu, Aug 13, 2009 at 7:17 PM, Marte Soliza wrote:
> I'm using httplib as an HTTP client for a custom HTTP server. One thing I
> need is to be
I'm using httplib as an HTTP client for a custom HTTP server. One thing I
need is to be able to immediately force disconnect a request that takes too
long on the server side (and hasn't returned any data) or if the connection
becomes problematic to the point that no data returns for a long period o