diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2013-04-05 13:02:11 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2013-04-05 13:02:11 -0700 |
commit | b329512636d5f7610c02cc452943a65e2c39470a (patch) | |
tree | 6fd79b02d1eff50a278b60800d2af4d842dc3ee6 | |
parent | 73a0d03bdc86a89ca1b452210887f9e86439a8cc (diff) | |
parent | 02d071be07fef362764b13a99dd9335a668c9117 (diff) |
Merge branch '1.10'
Conflicts:
NEWS
-rw-r--r-- | NEWS | 8 | ||||
-rw-r--r-- | paramiko/__init__.py | 2 | ||||
-rw-r--r-- | paramiko/agent.py | 7 | ||||
-rw-r--r-- | setup.py | 2 |
4 files changed, 15 insertions, 4 deletions
@@ -25,11 +25,15 @@ v1.11.0 (DD MM YYYY) implementations of all functionality. Thanks to Jason R. Coombs for the patch. -v1.10.1 (DD MM YYYY) --------------------- +v1.10.1 (5th Apr 2013) +---------------------- * #142: (Fabric #811) SFTP put of empty file will still return the attributes of the put file. Thanks to Jason R. Coombs for the patch. +* #154: (Fabric #876) Forwarded SSH agent connections left stale local pipes + lying around, which could cause local (and sometimes remote or network) + resource starvation when running many agent-using remote commands. Thanks to + Kevin Tegtmeier for catch & patch. v1.10.0 (1st Mar 2013) -------------------- diff --git a/paramiko/__init__.py b/paramiko/__init__.py index e2b359fb..099314ea 100644 --- a/paramiko/__init__.py +++ b/paramiko/__init__.py @@ -55,7 +55,7 @@ if sys.version_info < (2, 5): __author__ = "Jeff Forcier <jeff@bitprophet.org>" -__version__ = "1.10.0" +__version__ = "1.10.1" __license__ = "GNU Lesser General Public License (LGPL)" diff --git a/paramiko/agent.py b/paramiko/agent.py index 5d04dce8..1dd30636 100644 --- a/paramiko/agent.py +++ b/paramiko/agent.py @@ -130,15 +130,22 @@ class AgentProxyThread(threading.Thread): if len(data) != 0: self.__inr.send(data) else: + self._close() break elif self.__inr == fd: data = self.__inr.recv(512) if len(data) != 0: self._agent._conn.send(data) else: + self._close() break time.sleep(io_sleep) + def _close(self): + self._exit = True + self.__inr.close() + self._agent._conn.close() + class AgentLocalProxy(AgentProxyThread): """ Class to be used when wanting to ask a local SSH Agent being @@ -52,7 +52,7 @@ if sys.platform == 'darwin': setup(name = "paramiko", - version = "1.10.0", + version = "1.10.1", description = "SSH2 protocol library", author = "Jeff Forcier", author_email = "jeff@bitprophet.org", |