[{"title":"( 6 个子文件 5KB ) netstat显示 TIME-WAIT 的原因及解决办法","children":[{"title":"1 local peer主动调用close后,此时的TCP连接进入TIME_WAIT状态.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"标识一个IP链接是五元组,tcp链接是四元组.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"面试总结之time_wait状态产生的原因,危害,如何避免_Rock_N_Roll_的博客-CSDN博客.url <span style='color:#111;'> 379B </span>","children":null,"spread":false},{"title":"2解决办法","children":[{"title":"3内核参数tcp_tw_reuse只在调用connect()函数时起作用,所以只能用于客户端(主动连接的一端)","children":[{"title":"tcp_tw_reuse的作用是在调用connect()函数时,内核会随机找一个处于TIME_WAIT状态 超过1秒 的连接给新连接复用.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"TCP中time_wait解释及解决方法_永远爱好技术的王师傅的博客-CSDN博客_tcp time_wait.url <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"2 服务器可以设置SO_REUSEADDR套接字选项来通知内核,如果端口位于TIME_WAIT状态时可以重用端口.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]