[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to shutdown ghost tcp conections



Hi,

	I've to use redir to connect the outside world to a web server
here in our department.
	Unfortunately, the internal server had a crash, and, for some
reason, redir had problems with further connections, so I stopped it and
when I tried to restart, it complains that the address (port 80) is
already been used. That is correct, since there are some stalled
connections, not bound to any processes. They are listed below:

curiango:/tmp# netstat -t -n
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address       Foreign Address         State
tcp      431      0 200.136.52.46:80    200.177.144.169:1250    CLOSE
tcp      410      0 200.136.52.46:80    200.206.20.200:1475     CLOSE
tcp      317      0 200.136.52.46:80    200.206.20.200:1473     CLOSE
tcp      307      0 200.136.52.46:80    200.206.20.200:1474     CLOSE


	Using the /proc interface, I located them in /proc/net/tcp

 sl  local_address rem_address   st tx_queue rx_queue tr tm->when
retrnsmt   uid  timeout inode
  8: 2E3488C8:0050 A990B1C8:04E2 07 00000000:000001AF 02:00000026
00000000     0        7 0
   9: 2E3488C8:0050 C814CEC8:05C3 07 00000000:0000019A 02:00000065
00000000     0        7 0
  10: 2E3488C8:0050 C814CEC8:05C1 07 00000000:0000013D 02:000000F0
00000000     0        7 0
  11: 2E3488C8:0050 C814CEC8:05C2 07 00000000:00000133 02:000000F0
00000000     0        7 0


	Now, is there a way to definitively close these connections so
that I can restart redir to enable access to my internal server?

[]s,
Mario O.de Menezes            "Many are the plans in a man's heart, but
    IPEN-CNEN/SP                 is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario                 Prov. 19.21



Reply to: