[issue9177] ssl.read/write on closed socket raises AttributeError
STINNER Victor
report at bugs.python.org
Fri Jul 19 01:38:52 CEST 2013
STINNER Victor added the comment:
The check should be moved into the _checkClosed() method. Example:
def _checkClosed(self):
io.RawIOBase._checkClosed(self)
if self._sslobj is None:
raise ValueError("I/O operation on closed SSL socket")
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9177>
_______________________________________
More information about the Python-bugs-list
mailing list