Skip to content

Commit 6e024ed

Browse files
authored
Merge pull request #244 from 2WeirDo/fix-typo
a minor typo
2 parents 7776b7c + f757c29 commit 6e024ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network/3_tcp/tcp_unplug_the_network_cable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

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

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

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

0 commit comments

Comments
 (0)