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

@ -144,6 +144,10 @@ class _closedsocket(object):
send = recv = recv_into = sendto = recvfrom = recvfrom_into = _dummy
__getattr__ = _dummy
# Wrapper around platform socket objects. This implements
# a platform-independent dup() functionality. The
# implementation currently relies on reference counting
# to close the underlying socket object.
class _socketobject(object):
__doc__ = _realsocket.__doc__