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 shevek
Recipients docs@python, shevek
Date 2014-05-04.19:05:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399230346.59.0.136279071434.issue21430@psf.upfronthosting.co.za>
In-reply-to
Content
In order to use ssl sockets asynchronously, it is important to use the pending() method, otherwise the internal buffer will be ignored, and select may block for new data while it's already waiting.  See bug #16976 and http://stackoverflow.com/questions/21663705/how-to-use-select-with-python-ssl-socket-buffering

Using pending() works fine, but is entirely undocumented.  https://docs.python.org/2.7/library/ssl.html (and all other versions) don't even mention the existence of the method.  I hope this can be changed; using an undocumented feature isn't nice, but in this case there is no other good solution.
History
Date User Action Args
2014-05-04 19:05:46sheveksetrecipients: + shevek, docs@python
2014-05-04 19:05:46sheveksetmessageid: <1399230346.59.0.136279071434.issue21430@psf.upfronthosting.co.za>
2014-05-04 19:05:46sheveklinkissue21430 messages
2014-05-04 19:05:46shevekcreate