summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/usocket_tcp_basic.py
Commit message (Collapse)AuthorAge
* tests: Use .errno instead of .args[0] for OSError exceptions.Damien George2021-04-23
| | | | Signed-off-by: Damien George <damien@micropython.org>
* extmod/modlwip: Fix error return for TCP recv when not connected.Damien George2020-08-30
This commit fixes the cases when a TCP socket is in STATE_NEW, STATE_LISTENING or STATE_CONNECTING and recv() is called on it. It now raises ENOTCONN instead of a random error code due to it previously indexing beyond the start of error_lookup_table[]. Signed-off-by: Damien George <damien@micropython.org>