[issue16900] SSL sockets don't give resource warnings
Benjamin Peterson
report at bugs.python.org
Wed Jan 9 00:17:40 CET 2013
New submission from Benjamin Peterson:
Python 3.3.0+ (3.3:ab36d3bb5996+, Jan 8 2013, 17:08:35)
[GCC 4.5.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> del s
__main__:1: ResourceWarning: unclosed <socket.socket object, fd=3, family=2, type=1, proto=0>
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> import ssl
>>> ssl.wrap_socket(s)
<ssl.SSLSocket object, fd=3, family=2, type=1, proto=0>
>>> del s
We can just remove the __del__ on SSLSocket, right?
----------
messages: 179394
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: SSL sockets don't give resource warnings
type: behavior
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16900>
_______________________________________
More information about the Python-bugs-list
mailing list