Files
micropython/extmod
Damien George a7cd41847d extmod/modlwip: Keep TCP data on remote RST.
This commit fixes a long standing bug/deficiency in the lwIP socket code,
whereby it would abandon all incoming TCP data if the remote sent a TCP
RST.

This behaviour it tested by the existing
`tests/multi_net/tcp_client_rst.py` and
`tests/multi_net/asyncio_tcp_client_rst.py` tests, and they both fail on
boards like PYBD_SFx and RPI_PICO_W due to the deficiency.

With the fix here, both of those tests now pass on lwIP targets, along with
all existing socket tests.

Signed-off-by: Damien George <damien@micropython.org>
2026-01-27 00:49:19 +11:00
..
2019-10-29 14:17:29 +11:00
2017-07-18 11:57:39 +10:00