command to close tcp socket
After the server is stopped, the tcp port 1864 is still listening (a bug in the server), is there an unix command to close the socket.
# netstat -na Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 172.20.11.242:1864 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 172.20.11.242:22 172.20.11.211:32877 ESTABLISHED tcp 0 0 172.20.11.242:22 172.20.10.119:32789 ESTABLISHED tcp 0 0 172.20.11.242:22 172.20.11.211:32878 ESTABLISHED Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 902 /var/run/acpid.socket unix 10 [ ] DGRAM 741 /dev/log unix 2 [ ] DGRAM 8305323 unix 2 [ ] DGRAM 1500912 unix 2 [ ] DGRAM 705953 unix 2 [ ] DGRAM 11894 unix 2 [ ] DGRAM 1172 unix 2 [ ] DGRAM 999 unix 2 [ ] DGRAM 946 unix 2 [ ] DGRAM 753 unix 2 [ ] STREAM CONNECTED 433 |
if the server is really stopped, how can the port still be listening? Correct me if I'm wrong, but I didn't think a program could still be bound to a port after it is killed.
|
All times are GMT -5. The time now is 05:11 PM. |