Skip to content
  • Philip Withnall's avatar
    pseudotcp: Fix retransmission of segments before handling a FIN · fcbc7bfb
    Philip Withnall authored and Olivier Crête's avatar Olivier Crête committed
    Previously, if peer A transmitted one or more data segments (1),
    followed by a FIN segment (2) to peer B, and segments 1 were
    dropped, peer B would not request retransmission of them and would
    instead continue with the FIN handshake. This effectively meant
    segments 1 were lost without peer B realising.
    
    Fix this by only handling the FIN segment once its sequence number is
    acknowledged in the receive window.
    
    TODO: Test cases.
    fcbc7bfb