[issue1291446] SSLObject breaks read semantics
Bill Janssen
report at bugs.python.org
Thu Sep 4 22:03:22 CEST 2008
Bill Janssen <bill.janssen at gmail.com> added the comment:
The way I read the documentation, file.read() (and that's what we're
talking about) is still not guaranteed to read all the bytes of the
file. But, you're right, that is the accepted semantics. So the
documentation should change, too.
However, the "read" method on an SSLSocket, which is not a file()
subclass, is *not* guaranteed to return N bytes, it's guaranteed to
return at most N bytes. Call "makefile" on SSLSocket if you need a
file-like object.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1291446>
_______________________________________
More information about the Python-bugs-list
mailing list