tcp应用程序退出总是会发送FIN?
当 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正常情况下,会发送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.