You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extmod/modlwip: Fix non-blocking socket ENOTCONN handling.
Move the STATE_LISTENING check to the top of lwip_tcp_receive() to ensure
consistent error handling for both blocking and non-blocking sockets. This
prevents non-blocking sockets from incorrectly returning EAGAIN instead of
ENOTCONN when recv() is called on a listening socket.
Also extend the test to cover both blocking and non-blocking modes with
various listen() arguments to ensure the fix works correctly in all cases.
Signed-off-by: Andrew Leech <[email protected]>
0 commit comments