Don't raise timeouts as ProxyCommand failures, thanks @mgedmin

This commit is contained in:
Jeff Forcier 2014-02-13 13:44:46 -08:00
parent 4402f67fa6
commit d438ff6b64
1 changed files with 2 additions and 0 deletions

View File

@ -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)