Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.2
-
None
Description
102 def __withTimeout(f):
103 def _f(*args, **kwargs):
104 orig_timeout = socket.getdefaulttimeout()
105 socket.setdefaulttimeout(args[0].__timeout)
106 result = f(*args, **kwargs)
107 socket.setdefaulttimeout(orig_timeout)
108 return result
109 return _f
if f raises, the default timeout is not reset. Should be wrapped in a try/finally