Why do Windows sockets break after exactly 4 minutes?
Geoffrey Talvola
gtalvola at nameconnector.com
Thu Mar 21 18:54:57 EST 2002
I've noticed that Windows sockets seem to close all by themselves if there
is no activity for 4 minutes. Does anyone know why? Is it possible to
control this behavior? Just a link to some documentation of this behavior
would be greatly appreciated.
I don't think the same thing happens on Linux, or maybe it does but the
timeout is longer than 4 minutes there.
I've attached a set of 2 test scripts that provoke the behavior. Start up
server.py first, then client.py, then wait 4 minutes.
- Geoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: client.py
Type: application/octet-stream
Size: 507 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20020321/93c3e08d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.py
Type: application/octet-stream
Size: 563 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20020321/93c3e08d/attachment-0001.obj>
More information about the Python-list
mailing list