Skip to content
  • Philip Withnall's avatar
    pseudotcp: Fix EOS return from recv() in non-FIN–ACK mode · c8093821
    Philip Withnall authored and Olivier Crête's avatar Olivier Crête committed
    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.
    c8093821