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.
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