mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
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>
2.2 KiB
2.2 KiB