summaryrefslogtreecommitdiff
path: root/tests/multi_net/tcp_accept_recv.py
AgeCommit message (Collapse)Author
2025-06-26extmod/modlwip: Fix crash when calling recv on listening socket.Andrew Leech
Add check to prevent calling recv on a socket in the listening state. This prevents a crash/hard fault when user code mistakenly tries to recv on the listening socket instead of on the accepted connection. Add corresponding test case to demonstrate the bug. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
2022-05-24tests/multi_net: Fix TCP accept test when using system error numbers.iabdalkader
If a port is not using internal error numbers, which match both lwIP and Linux error numbers, ENTOCONN from standard libraries errno.h equals 128, not 107.
2021-04-23tests: Use .errno instead of .args[0] for OSError exceptions.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2020-03-10tests/multi_net: Add initial set of multi-instance tests for network.Damien George