summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-12-17 13:47:21 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-12-17 13:47:21 -0800
commit99763d52fc649ffb300987a679c4c5924471bd3c (patch)
tree816248814240ad0011cd6612221c78d5d1f28fd3
parent3f1d3f1c0e0e77bf258547fcd926cd1843b9d4f2 (diff)
parent1509dcd598452da3c645f49aec51a10c9ffc1629 (diff)
Merge branch '1.15'
-rw-r--r--paramiko/agent.py3
-rw-r--r--sites/www/changelog.rst3
2 files changed, 5 insertions, 1 deletions
diff --git a/paramiko/agent.py b/paramiko/agent.py
index 4f463449..a75ac59e 100644
--- a/paramiko/agent.py
+++ b/paramiko/agent.py
@@ -73,7 +73,8 @@ class AgentSSH(object):
self._keys = tuple(keys)
def _close(self):
- #self._conn.close()
+ if self._conn is not None:
+ self._conn.close()
self._conn = None
self._keys = ()
diff --git a/sites/www/changelog.rst b/sites/www/changelog.rst
index eb9b55ae..1df4214e 100644
--- a/sites/www/changelog.rst
+++ b/sites/www/changelog.rst
@@ -2,6 +2,9 @@
Changelog
=========
+* :bug:`459` Tighten up agent connection closure behavior to avoid spurious
+ ``ResourceWarning`` display in some situations. Thanks to ``@tkrapp`` for the
+ catch.
* :bug:`429` Server-level debug message logging was overlooked during the
Python 3 compatibility update; Python 3 clients attempting to log SSH debug
packets encountered type errors. This is now fixed. Thanks to ``@mjmaenpaa``