socket wedged forever in recv()
Peter Hansen
peter at engcorp.com
Fri Jan 24 17:37:47 EST 2003
Geoffrey Talvola wrote:
>
> I have a Windows NT client application that uses httplib to make requests to
> a Windows NT server running Apache 2.0 serving up a cgi script.
> Unfortunately, if I reboot the Apache server, if a request is in-progress,
> the client will often wedge permanently. I built a debug version of Python
> 2.2.2 and verified that the client is stuck in a call to recv() and will
> apparently never exit. It's a little irritating that the client can't
> detect the situation and return from recv() with an error code at this
> point. Does anyone know a way to get the client to notice that the server
> is gone?
Use the "select" module.
-Peter
More information about the Python-list
mailing list