系统相关
首页 > 系统相关> > linux-没有TIME_WAIT连接,为什么?

linux-没有TIME_WAIT连接,为什么?

作者:互联网

如果我有sysctl tw_reuse = 0和tw_recycle = 0,并且netstat不报告任何TIME_WAIT连接,那意味着…?它是两个服务器之间的局域网连接, B,A在netstat中具有与B的TIME_WAIT连接,但B与A没有.

解决方法:

只有关闭通讯的连接侧才能处于TIME_WAIT状态,请参见相关的UNIX Socket FAQ时序图.

Remember that TCP guarantees all data
transmitted will be delivered, if at
all possible. When you close a socket,
the server goes into a TIME_WAIT
state, just to be really really sure
that all the data has gone through.

标签:time-wait,tcp,linux
来源: https://codeday.me/bug/20191208/2094003.html