Skip to content

Commit

Permalink
Merge pull request #244 from 2WeirDo/fix-typo
Browse files Browse the repository at this point in the history
a minor typo
  • Loading branch information
xiaolincoder committed May 23, 2024
2 parents 7776b7c + f757c29 commit 6e024ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/3_tcp/tcp_unplug_the_network_cable.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

此时,客户端和服务端的 TCP 连接依然存在的,就感觉什么事情都没有发生。

但是,**如果如果在服务端重传报文的过程中,客户端一直没有将网线插回去**,服务端超时重传报文的次数达到一定阈值后,内核就会判定出该 TCP 有问题,然后通过 Socket 接口告诉应用程序该 TCP 连接出问题了,于是服务端的 TCP 连接就会断开。
但是,**如果在服务端重传报文的过程中,客户端一直没有将网线插回去**,服务端超时重传报文的次数达到一定阈值后,内核就会判定出该 TCP 有问题,然后通过 Socket 接口告诉应用程序该 TCP 连接出问题了,于是服务端的 TCP 连接就会断开。

而等客户端插回网线后,如果客户端向服务端发送了数据,由于服务端已经没有与客户端相同四元祖的 TCP 连接了,因此服务端内核就会回复 RST 报文,客户端收到后就会释放该 TCP 连接。

Expand Down

0 comments on commit 6e024ed

Please sign in to comment.