Bug #978833: Close https sockets by releasing the _ssl object.

This commit is contained in:
Martin v. Löwis 2007-07-27 18:28:22 +00:00
parent ec2ce9bbae
commit f25e35b9ec
4 changed files with 28 additions and 0 deletions

View file

@ -1117,6 +1117,9 @@ def recv(self, len = 1024, flags = 0):
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."