This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author noxxi
Recipients animus, christian.heimes, docs@python, noxxi, pitrou, shevek
Date 2014-05-17.22:41:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400366465.51.0.501057367372.issue21430@psf.upfronthosting.co.za>
In-reply-to
Content
> What's the point of checking? Just call SSL_read() and catch the SSL_ERROR_WANT_{READ,WRITE} to determine that no data is available; as a bonus it also tells you whether you have to select() for read or for write.

A common scenario with non-blocking sockets is to have lots of sockets at the same time and a central select loop. And whenever a socket gets ready it usually reads only as much as is needed for its current task and then returns to the select-loop. 

I was trying to point out that for SSL enabled sockets this approach will no longer work and might cause odd stalling of connections, because select will not show the socket as readable although data are there for read. I don't think it is enough to just document pending, but it should be documented that the behavior with SSL sockets with select differs from the behavior one is used from normal TCP sockets.
History
Date User Action Args
2014-05-17 22:41:05noxxisetrecipients: + noxxi, shevek, pitrou, christian.heimes, docs@python, animus
2014-05-17 22:41:05noxxisetmessageid: <1400366465.51.0.501057367372.issue21430@psf.upfronthosting.co.za>
2014-05-17 22:41:05noxxilinkissue21430 messages
2014-05-17 22:41:05noxxicreate