[issue21430] Document ssl.pending()

Antoine Pitrou report at bugs.python.org
Sat May 17 21:12:57 CEST 2014


Antoine Pitrou added the comment:

> So to make use of select with SSL the application would have to check first
> with pending, if there are already buffered data,

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.

----------

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


More information about the Python-bugs-list mailing list