Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内容错误 #19

Open
jackie-97 opened this issue Sep 21, 2023 · 3 comments
Open

内容错误 #19

jackie-97 opened this issue Sep 21, 2023 · 3 comments

Comments

@jackie-97
Copy link

issue:
第一次挥手:客户端向服务端发送连接释放报文
第二次挥手:服务端收到连接释放报文后,立即发出确认报文。这时 TCP 连接处于半关闭状态,即客户端到服务端的连接已经释放了,但是服务端到客户端的连接还未释放。表示客户端已经没有数据发送了,但是服务端可能还要给客户端发送数据。
第三次挥手:服务端向客户端发送连接释放报文
第四次挥手:客户端收到服务端的连接释放报文后,立即发出确认报文。此时,客户端就进入了 TIME-WAIT 状态。注意此时客户端到 服务端的 TCP 连接还没有释放,必须经过 2*MSL(最长报文段寿命)的时间后,才进入CLOSED 状态。

没有发现第二跟第四点说法矛盾吗?二次挥手说客户端到服务端已经释放,第四挥手又说还没释放。。。。

@musuifeng
Copy link

musuifeng commented Sep 21, 2023 via email

@join-wjp
Copy link

join-wjp commented Sep 21, 2023 via email

@LudanLink
Copy link

LudanLink commented Sep 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants