mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 13:10:21 +01:00
If a socket is cleanly shut down by the peer then reads on this socket should continue to return zero bytes. The lwIP socket API does not have this behaviour (it only returns zero once, then blocks on subsequent calls) so this patch adds explicit checks and logic for peer closed sockets.