Open WALL-E opened 7 years ago
sysctl -w net.ipv4.tcp_synack_retries=7
sock -s 0.0.0.0 1235 -T &
[root@vagrant-172-28-32-101 ~]# ss -ltn|grep 1235|cat -n
1 LISTEN 0 5 *:1235 *:*
2 LISTEN 0 5 *:1235 *:*
3 LISTEN 0 5 *:1235 *:*
4 LISTEN 0 5 *:1235 *:*
5 LISTEN 0 5 *:1235 *:*
6 LISTEN 0 5 *:1235 *:*
7 LISTEN 0 5 *:1235 *:*
8 LISTEN 0 5 *:1235 *:*
9 LISTEN 0 5 *:1235 *:*
10 LISTEN 0 5 *:1235 *:*
tcpdump -i any port 1234 -n -ttt
iptables -I OUTPUT -p tcp --dport 1235 --tcp-flags ACK ACK -j DROP
sock 172.28.32.101 1235
[root@vagrant-172-28-32-101 ~]# sock -s 0.0.0.0 1235 -T &
[root@vagrant-172-28-32-101 ~]# ss -ltn|grep 1235|cat -n 1 LISTEN 0 5 :1235 : 2 LISTEN 0 5 :1235 : 3 LISTEN 0 5 :1235 : 4 LISTEN 0 5 :1235 : 5 LISTEN 0 5 :1235 : 6 LISTEN 0 5 :1235 : 7 LISTEN 0 5 :1235 : 8 LISTEN 0 5 :1235 : 9 LISTEN 0 5 :1235 : 10 LISTEN 0 5 :1235 : 11 LISTEN 0 5 :1235 : 12 LISTEN 0 5 :1235 : 13 LISTEN 0 5 :1235 : 14 LISTEN 0 5 :1235 : 15 LISTEN 0 5 :1235 : 16 LISTEN 0 5 :1235 : 17 LISTEN 0 5 :1235 : 18 LISTEN 0 5 :1235 : 19 LISTEN 0 5 :1235 : 20 LISTEN 0 5 :1235 :
## 结论
从实验数据来看,Linux内核已经修复了题目描述的问题
查看内核源码,没有找到明确的信息。 git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
commit c617f398edd4db2b8567a28e899a88f8f574798d Merge: 4a633a6 72289b9 Author: David S. Miller davem@davemloft.net Date: Wed Jan 23 13:44:10 2013 -0500