发现一个规律:比如我在 10:00 建了两个 TCP 连接然后断开,11:00 建 3 个,前 2 个的创建时间都是 11:00,第 3 个的创建时间才是 12:00 。我昨天向服务器发起了上百个 TCP 连接,然后断开,结果今天新建的连接的时间都是昨天 15 号的,这是什么机制啊?
[root@ip-172-168-3-12 ~]# lsof -i :8020
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 5150 root 107u IPv6 15969117 0t0 TCP
ip-172-168-3-12.us-east-2.compute.internal:intu-ec-svcdisc->180.169.235.202:rfmp (ESTABLISHED)
java 5150 root 109u IPv6 15968131 0t0 TCP
ip-172-168-3-12.us-east-2.compute.internal:intu-ec-svcdisc->180.169.235.202:remote-collab (ESTABLISHED)
java 5150 root 110u IPv6 15969118 0t0 TCP
ip-172-168-3-12.us-east-2.compute.internal:intu-ec-svcdisc->180.169.235.202:dif-port (ESTABLISHED)
[root@ip-172-168-3-12 ~]# ll /proc/5150/fd | grep socket
lrwx------ 1 root root 64 Dec 15 03:05 107 -> socket:[15969117]
lrwx------ 1 root root 64 Dec 15 03:05 109 -> socket:[15968131]
lrwx------ 1 root root 64 Dec 15 03:05 110 -> socket:[15969118]