TCP closing a connection

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TCP closing a connection相关的知识,希望对你有一定的参考价值。

client closes socket:

clientSocket.close();


step1 :client sends TCP FIN control segment to server


step2: Server receives FIN,replies with ACK. Closes connection,sends FIN.


time wait 30 seconds(in order to receive the package which already send but unreceived)

技术分享

技术分享技术分享



TCP waits until it has been three duplicate ACKs before retransmitting the packet

以上是关于TCP closing a connection的主要内容,如果未能解决你的问题,请参考以下文章

TCP之connect

safe close tcp connection

TCPIP------TCP Connection Management

HTTP ------ connection 为 close 和 keep-alive 的区别

个人对TCP11种状态转换的理解

有了解http状态查询显示“Connection: close”是啥意思吗?