TCP connection owned by pid zero

自闭症网瘾萝莉.ら 提交于 2019-11-30 08:28:14

After a TCP connection closes, it goes into the TIME_WAIT state for a fixed period. This is to ensure that any packets related to the connection that might still be queued up in the network won't interfere with new connections.

Since this has to happen even if the original process has exited, I'm guessing that Windows automatically transfers ownership to the system process.

So, I believe the answers to your last four questions are:

  • No, you probably don't need to worry about this.

  • Yes, the service program released the connection properly.

  • The TIME_WAIT connections will be closed early if the system runs out of TCBs. In the default configuration this will happen before you run out of ports, so in effect, yes, the connections will be reused if they are needed.

  • I'm not familiar with the service point manager, but there's no reason for it to track connections in the TIME_WAIT state, so probably no.

On Windows XP, the default value for the TIME_WAIT delay was two minutes. I can't find more recent information, but it seems likely that it hasn't been changed since then.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!