• Philip Withnall's avatar
    pseudotcp: Fix pseudo_tcp_socket_recv() in state TCP_CLOSE_WAIT · a72a93e5
    Philip Withnall authored
    Previously, pseudo_tcp_socket_recv() would start returning 0 (EOS) as
    soon as a FIN segment was received from the peer, even if there was
    unread data already in the receive buffer.
    
    Instead, the unread data should all be accessible before
    pseudo_tcp_socket_recv() starts returning 0.
    a72a93e5
test-pseudotcp-fin.c 35.8 KB