tcp应用程序退出总是会发送FIN?

发布于 2024-08-24 23:57:04 字数 140 浏览 3 评论 0原文

当 TCP 应用程序退出时,它将发送 FIN 数据包。

考虑一个连接到始终监听的服务器(服务器永远不会退出)的 TCP 客户端。

如果tcp客户端在交换几次数据包后突然退出,它是否总是向服务器发送FIN数据包?

谢谢!

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 exchange of packets, will it always send a FIN packet to the server?

Thx!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

本宫微胖 2024-08-31 23:57:04

正常情况下,会发送FIN,是的。

以下是不发送 FIN 的几种情况。

  • 有人拔掉客户端的网线。
  • 客户端受到攻击
  • FIN 数据包在途中被丢弃。
  • 内核上的操作系统严重崩溃。

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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文