[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

STINNER Victor report at bugs.python.org
Sat Mar 27 14:29:51 CET 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> ..., the doc says about SSLSocket.write:
> 
> Returns the number of bytes written.
> 
> It actually either returns 0 or len(data), at least as long as we don't
>  have SSL partial writes. That's a different behaviour from regular
>  sockets, and I had to look in _ssl.c to figure out why I never had values
>  inbetween.

You should open a new issue for this point.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8240>
_______________________________________


More information about the Python-bugs-list mailing list