ARMmbed / sal-stack-lwip

LwIP package for mbed
Other
4 stars 14 forks source link

Improve listener handling #32

Closed bremoran closed 8 years ago

bremoran commented 8 years ago

When accepting a connection, the newly created tcp pcb should not call tcp_received until a user-supplied TCP Receive handler has been installed. This can happen some time after the accept event has occurred.

This change sets tcp_recv to a handler that explicitly fails, so that the tcp_pcb stores the incoming data.

This change should fix https://github.com/ARMmbed/sockets/issues/35

bremoran commented 8 years ago

cc @bogdanm

bogdanm commented 8 years ago

+1