Mercurial > cpython-lru_cache-weakref
diff Lib/socket.py @ 42385:e9916a4e06a4 legacy-trunk
Bug #978833: Close https sockets by releasing the _ssl object.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 27 Jul 2007 18:28:22 +0000 |
| parents | 4b9fa8092e82 |
| children | 08b6278aa1f4 |
line wrap: on
line diff
--- a/Lib/socket.py Fri Jul 27 10:36:30 2007 +0000 +++ b/Lib/socket.py Fri Jul 27 18:28:22 2007 +0000 @@ -144,6 +144,10 @@ 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__
