[issue31711] ssl.SSLSocket.send(b"") fails
Nathaniel Smith
report at bugs.python.org
Mon Feb 26 15:54:16 EST 2018
Nathaniel Smith <njs at pobox.com> added the comment:
My point is that SSL_write(3ssl) says "WARNING: When calling SSL_write() with num=0 bytes to be sent the behaviour is undefined."
Apparently on the particular openssl you're looking at, it gives SSL_ERROR_SYSCALL with error code == 0 and len == 0, but the openssl devs claim this is some arbitrary thing that shouldn't be depended on.
Just as a general principle it would be nice if performing ordinary operations on an SSLSocket from Python did not invoke undefined behavior :-)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31711>
_______________________________________
More information about the Python-bugs-list
mailing list