Cortexiphan
Cortexiphan

Reputation: 151

Process terminated, but its network resource remained

My program has a TCP server and always has several longlived connections. Sometimes I close the program without closing all the connections and then I execute netstat -ano in command line, amazingly all the connections remained with the state of "ESTABLISHED" with a pid that doesn't exist in the task-manager! Restarting the network card doesn't do any help. The only solution is logout/logon or restarting the computer. Anybody ever met this problem?

Upvotes: 1

Views: 61

Answers (1)

zed_0xff
zed_0xff

Reputation: 33227

This may be the sockets in a 'half-closed' state.

They usually disappear after some timeout which may be pretty big (from 5 to 30 minutes), depending on your system.

Upvotes: 1

Related Questions