summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/assign_expr.py.exp
diff options
context:
space:
mode:
authorDamien Tournoud <damien@platform.sh>2022-12-15 10:15:18 -0800
committerDamien Tournoud <damien@platform.sh>2022-12-15 12:06:22 -0800
commited58d6e4ce5878d5f53457e72686962e7f57f5df (patch)
tree8aab3206923a5d9cd56e0294409d802aa185fc59 /tests/basics/assign_expr.py.exp
parent988b6e2dae4e7f6b6f85c3b149fabeb50bb0519f (diff)
downloadmicropython-ed58d6e4ce5878d5f53457e72686962e7f57f5df.tar.gz
micropython-ed58d6e4ce5878d5f53457e72686962e7f57f5df.zip
extmod/modussl_mbedtls: Fix support for ioctl(MP_STREAM_POLL).
During the initial handshake or subsequent renegotiation, the protocol might need to read in order to write (or conversely to write in order to read). It might be blocked from doing so by the state of the underlying socket (i.e. there is no data to read, or there is no space to write). The library indicates this condition by returning one of the errors `MBEDTLS_ERR_SSL_WANT_READ` or `MBEDTLS_ERR_SSL_WANT_WRITE`. When that happens, we need to enforce that the next poll operation only considers the direction that the library indicated. In addition, mbedtls does its own read buffering that we need to take into account while polling, and we need to save the last error between read()/write() and ioctl().
Diffstat (limited to 'tests/basics/assign_expr.py.exp')
0 files changed, 0 insertions, 0 deletions