Author cbay
Recipients cbay, giampaolo.rodola, vstinner
Date 2010-03-26.18:05:01
SpamBayes Score 1.01459e-10
Marked as misclassified No
Message-id <>
You're right about the assert, I've just uploaded a new patch.

In non-blocking mode, ssl_socket.send(data) will return either 0 (which means nothing was sent, you'll have to try again), or len(data) when everything was sent. It can't return anything inbetween. This is because SSL_MODE_ENABLE_PARTIAL_WRITE is not enabled.

In my opinion, SSL_MODE_ENABLE_PARTIAL_WRITE should probably be enabled, although I don't know if it would have any consequence on existing code. Note that _ssl.c header has:

   XXX should partial writes be enabled, SSL_MODE_ENABLE_PARTIAL_WRITE?

However, it's totally unrelated to our bug. Issue #8222 is also unrelated since SSL_MODE_AUTO_RETRY only applies to blocking sockets.

By the way, this bug was triaged "test needed". Am I missing anything? This is my first reported bug, I'm not sure about the process.
Date User Action Args
2010-03-26 18:05:03cbaysetrecipients: + cbay, vstinner, giampaolo.rodola
2010-03-26 18:05:03cbaysetmessageid: <>
2010-03-26 18:05:02cbaylinkissue8240 messages
2010-03-26 18:05:01cbaycreate