[issue20951] SSLSocket.send() returns 0 for non-blocking socket
Giampaolo Rodola'
report at bugs.python.org
Tue Mar 25 20:58:04 CET 2014
Giampaolo Rodola' added the comment:
-1 about adding raise_on_blocking_send=False option as IMO it unnecessarily complicates the API.
Note: when working with plain sockets send() returning 0 means the connection has been closed by the other peer, same for os.sendfile().
It appears ssl module is the only one behaving differently therefore I'd be for signaling the discrepancy in the doc.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20951>
_______________________________________
More information about the Python-bugs-list
mailing list