diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-07-27 18:28:22 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-07-27 18:28:22 (GMT) |
commit | f25e35b9ec2bb87833108c5bb615113a93894dce (patch) | |
tree | 762243a7b55d327261b43be53d7d9981de8687c0 /Lib/httplib.py | |
parent | ec2ce9bbaeb9d21fe0390fea7dca8e04be526a23 (diff) | |
download | cpython-f25e35b9ec2bb87833108c5bb615113a93894dce.zip cpython-f25e35b9ec2bb87833108c5bb615113a93894dce.tar.gz cpython-f25e35b9ec2bb87833108c5bb615113a93894dce.tar.bz2 |
Bug #978833: Close https sockets by releasing the _ssl object.
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index badaf1a..aee9b0d 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -1117,6 +1117,9 @@ class FakeSocket(SharedSocketClient): def __getattr__(self, attr): return getattr(self._sock, attr) + def close(self): + SharedSocketClient.close(self) + self._ssl = None class HTTPSConnection(HTTPConnection): "This class allows communication via SSL." |