Index of /ports_net/py-timeoutsocket

Icon  Name                    Last modified      Size  
[DIR] Parent Directory - [   ] Makefile 28-May-2011 14:08 593 [   ] distinfo 28-May-2011 14:08 142 [TXT] pkg-descr 19-Jan-2010 08:33 458 [   ] pkg-plist 23-Apr-2007 12:57 119
timeoutsocket enables a timeout mechanism on all TCP connections.  It
does this by inserting a shim into the socket module.  After this module
has been imported, all socket creation goes through this shim.  As a
result, every TCP connection will support a timeout.

The beauty of this method is that it immediately and transparently
enables the entire python library to support timeouts on TCP sockets.

WWW: http://www.timo-tasi.org/python/timeoutsocket.py