--- ECHO_content/Attic/timeoutsocket.py 2004/08/17 15:22:14 1.1 +++ ECHO_content/Attic/timeoutsocket.py 2004/08/18 12:41:00 1.2 @@ -85,7 +85,7 @@ Good Luck! """ -__version__ = "$Revision: 1.1 $" +__version__ = "$Revision: 1.2 $" __author__ = "Timothy O'Malley " # @@ -98,7 +98,6 @@ if not hasattr(socket, "_no_timeoutsocke else: _socket = socket._no_timeoutsocket - # # Set up constants to test for Connected and Blocking operations. # We delete 'os' and 'errno' to keep our namespace clean(er). @@ -142,6 +141,7 @@ class Timeout(Exception): from socket import AF_INET, SOCK_STREAM def timeoutsocket(family=AF_INET, type=SOCK_STREAM, proto=None): if family != AF_INET or type != SOCK_STREAM: + if proto: return _socket(family, type, proto) else: