From f25e35b9ec2bb87833108c5bb615113a93894dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 27 Jul 2007 18:28:22 +0000 Subject: Bug #978833: Close https sockets by releasing the _ssl object. --- Lib/socket.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/socket.py') diff --git a/Lib/socket.py b/Lib/socket.py index 4490fc400d..45a122fdce 100644 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -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__ -- cgit v1.2.1