How does TCP connection terminate if one of the machine dies?

后端 未结 5 1426
孤街浪徒
孤街浪徒 2021-02-14 04:46

If a TCP connection is established between two hosts (A & B), and lets say host A has sent 5 octets to host B, and then the host B crashes (due to unknown reason). The host

5条回答
  •  猫巷女王i
    2021-02-14 05:17

    Depends on the OS implementation. In short it will wait for ACK and resend packets until it times out. Then your connection will be torn down. To see exactly what happens in Linux look here other OSes follow similar algorithm.

提交回复
热议问题