File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1631,8 +1631,14 @@ thus several things you need to be aware of:
16311631 and :meth: `SSLSocket.send ` failures, and retry after another call to
16321632 :func: `~select.select `.
16331633
1634+ - Conversely, since the SSL layer has its own framing, a SSL socket may
1635+ still have data available for reading without :func: `~select.select `
1636+ being aware of it. Therefore, you should first call
1637+ :meth: `SSLSocket.recv ` to drain any potentially available data, and then
1638+ only block on a :func: `~select.select ` call if still necessary.
1639+
16341640 (of course, similar provisions apply when using other primitives such as
1635- :func: `~select.poll `)
1641+ :func: `~select.poll `, or those in the :mod: ` selectors ` module )
16361642
16371643- The SSL handshake itself will be non-blocking: the
16381644 :meth: `SSLSocket.do_handshake ` method has to be retried until it returns
You can’t perform that action at this time.
0 commit comments