summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/struct_micropython.py.exp
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-08-30 13:20:51 +1000
committerDamien George <damien@micropython.org>2020-08-30 13:20:51 +1000
commitd1995e50ebda074f8151609bb4c95d4c31072513 (patch)
tree31ccbfbb14315087bd23563ef095992db75f645d /tests/basics/struct_micropython.py.exp
parent06659077a81b85882254cf0953c33b27614e018e (diff)
downloadmicropython-d1995e50ebda074f8151609bb4c95d4c31072513.tar.gz
micropython-d1995e50ebda074f8151609bb4c95d4c31072513.zip
extmod/modlwip: Fix error return for TCP recv when not connected.
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>
Diffstat (limited to 'tests/basics/struct_micropython.py.exp')
0 files changed, 0 insertions, 0 deletions