Commit 0cd0729d authored by Committed by Olivier Crête
pseudotcp: Fix EOS return from recv() in non-FIN–ACK mode
Change pseudo_tcp_socket_recv() to return 0 if in non-FIN–ACK mode and the socket has been shut down. This makes the behaviour of FIN–ACK and non-FIN–ACK modes consistent. This is a behaviour change from before the introduction of FIN–ACK mode — previously, pseudo_tcp_socket_recv() would return -1 and set the ENOTCONN error if called after the socket had been shut down (i.e. after pseudo_tcp_socket_get_next_clock() had returned FALSE). The new behaviour will hopefully not break anything.
Showing with 5 additions and 0 deletions