summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-02-13 13:44:46 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-02-13 13:44:46 -0800
commitd438ff6b64f1c20b78fc1824bacba9659653ecd1 (patch)
tree6e11ca67b126d00bde80502872d3ea7ee25aad5d
parent4402f67fa61c1c43a838d4414e42ad8047876ebf (diff)
Don't raise timeouts as ProxyCommand failures, thanks @mgedmin
-rw-r--r--paramiko/proxy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/paramiko/proxy.py b/paramiko/proxy.py
index 722590ce..3f5c8bb2 100644
--- a/paramiko/proxy.py
+++ b/paramiko/proxy.py
@@ -100,6 +100,8 @@ class ProxyCommand(object):
result = ''.join(self.buffer)
self.buffer = []
return result
+ except socket.timeout:
+ raise # socket.timeout is a subclass of IOError
except IOError, e:
raise ProxyCommandFailure(' '.join(self.cmd), e.strerror)