开发者

tcp application exit will send FIN always?

When a TCP application exits it will send a FIN packet.

Consider a tcp client which get connected to a always listening server(server never exits).

if the tcp client is exiting abruptly after few exch开发者_运维技巧ange of packets, will it always send a FIN packet to the server?

Thx!


Under normal operation , a FIN will be sent ,yes.

Here's a few cases where a FIN is not going to be sent.

  • Someone yanks out the network cable of the client.
  • The client gets nuked
  • The FIN packets are dropped on the way.
  • The OS on the kernel crashes hard.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜