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

Cyril report at bugs.python.org
Fri Mar 26 19:09:23 CET 2010


Cyril <cbay at excellency.fr> added the comment:

I forgot to talk about the conditions in which I stumbled upon that bug. I use a cStringIO.StringIO as a send buffer. When the socket is ready to send data, I call ssl_socket.send(send_buffer.getvalue()).

Unfortunately, two consecutive calls to send_buffer.getvalue() may return a different object (i.e. a string with a different memory address).

----------

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


More information about the Python-bugs-list mailing list