要处理timewait 过多的问题,首先应该清楚这个状态是由来,即需要了解TCP 状态迁移的过程; TCP 三次握手四次挥手状态迁移 1 TCP A TCP B 2 3 1. CLOSED LISTEN 4 5 2. SYN-SENT --> <SEQ=100><CTL=SYN> --> SYN-RECEIVED 6 7 3. ESTABLISHED <-- <SEQ=300><ACK=101><CTL=SYN,ACK> <-- SYN-RECEIVED 8 9 4. ESTABLISHED --> …
阅读更多