[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

Josiah Carlson report at bugs.python.org
Wed Oct 22 00:30:58 CEST 2008


Josiah Carlson <josiahcarlson at users.sourceforge.net> added the comment:

I agree with Giampaolo.  In the case of non-blocking sockets, if reading 
from the ssl stream fails because there is no data on the socket, then 
sitting in a while loop is just going to busy-wait until data is 
discovered.

Never mind that the reference to "sendall" should be replaced by recv.

Whether to 'continue' or 'raise' should be determined by whether the 
socket is blocking.

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


More information about the Python-bugs-list mailing list