mirror of
https://github.com/python/cpython.git
synced 2025-10-29 04:35:05 +00:00
Bug #978833: Close https sockets by releasing the _ssl object.
This commit is contained in:
parent
ec2ce9bbae
commit
f25e35b9ec
4 changed files with 28 additions and 0 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue