[3] in linux-net channel archive
sockets hanging around in 1.1.73
daemon@ATHENA.MIT.EDU (John Paul Morrison)
Thu Dec 15 22:44:58 1994
From: jmorriso@bogomips.ee.ubc.ca (John Paul Morrison)
To: linux-net@vger.rutgers.edu
Date: Thu, 15 Dec 1994 18:40:47 -0800 (PST)
In 1.1.73 I can see that some sockets are staying around forever in
FIN_WAIT2 or LAST_ACK or ?? state. The timers appear to change but the
retries don't change and the sockets don't disappear. Did /proc/net/
change again (ie do I need a new netstat?) or is this a bug?
here's the output of
netstat -ton; sleep 1; netstat -ton
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (State)
User
tcp 2 1 44.135.190.129:1057 137.82.216.5:80 ?? () root on (0.02/0)
tcp 0 3 44.135.190.129:1054 137.82.216.5:80 FIN_WAIT2 root on (0.02/16)
tcp 2 529 44.135.190.129:1040 192.9.213.2:540 LAST_ACK root on (0.04/0)
tcp 2 1 44.135.190.129:1038 192.9.213.2:79 LAST_ACK root on (0.04/0)
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (State) User
tcp 2 1 44.135.190.129:1057 137.82.216.5:80 ?? () root on (0.06/0)
tcp 0 3 44.135.190.129:1054 137.82.216.5:80 FIN_WAIT2 root on (0.06/16)
tcp 2 529 44.135.190.129:1040 192.9.213.2:540 LAST_ACK root on (0.06/0)
tcp 2 1 44.135.190.129:1038 192.9.213.2:79 LAST_ACK root on (0.06/0)
somethings odd with this. maybe I should do a make clean and rebuild to be sure.
here's cat /proc/net/tcp:
sl local_address rem_address st tx_queue rx_queue tr tm->when uid
1: 00000000:0801 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
1: 00000000:0201 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
2: 00000000:0202 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
7: 00000000:0007 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
9: 00000000:0009 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
13: 00000000:000D 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
14: 81BE872C:040E 02D509C0:004F 09 00000001:00000002 01:00000008 00000000 0
16: 81BE872C:0410 02D509C0:021C 09 00000211:00000002 01:00000008 00000000 0
19: 00000000:0013 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
21: 00000000:0015 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
23: 00000000:0017 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
25: 00000000:0019 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
28: 00000000:021C 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
30: 81BE872C:041E 05D85289:0050 05 00000003:00000000 01:00000008 00000010 0
33: 81BE872C:0421 05D85289:0050 0B 00000001:00000002 01:00000008 00000000 0
37: 00000000:0025 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
53: 00000000:0035 00000000:0000 0A FFE56F70:00000000 00:00000000 A9020100 0
79: 00000000:004F 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
111: 00000000:006F 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
112: 00000000:1770 00000000:0000 0A FFE56A38:00000000 00:00000000 D509C081 405
113: 00000000:0071 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
119: 00000000:0077 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
205: 00000000:11CD 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
---------------------------------------------------------------------------
BogoMIPS Research Labs -- bogosity research & simulation -- VE7JPM --
jmorriso@bogomips.ee.ubc.ca ve7jpm@ve7jpm.ampr.org jmorriso@ve7ubc.ampr.org
---------------------------------------------------------------------------