[docs] [issue31711] ssl.SSLSocket.send(b"") fails
Christian Heimes
report at bugs.python.org
Mon Feb 26 04:57:24 EST 2018
Christian Heimes <lists at cheimes.de> added the comment:
The message "EOF occurred in violation of protocol" is set by Python. Python maps SSL_ERROR_SYSCALL with SSL error code == 0 and len == 0 to that error message.
https://github.com/python/cpython/blob/master/Modules/_ssl.c#L682-L689
https://github.com/python/cpython/blob/master/Modules/_ssl.c#L2263
I don't know why the code was implemented that way.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31711>
_______________________________________
More information about the docs
mailing list