Windows Network Connections Open Even after owning process ends

Stan Kasper 1,266 Reputation points

I run a browser and go to a website. The website opens up a number of connections. I can see the connections using 'netstat -ano' and the identity of the process PID. I close the web browser. But the connections stay open and are then associated with PID 0 - system idle. I log off and then log back on. I do a 'netstat -ano' and I still see the network connections and there associated process PID 0. After something like a minute or more the connections eventually go away. Is there a reason network connections do not close when the process terminates? Is there a configuration option to close the connections completely when the owning process terminates?

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
1,999 questions
No comments
{count} votes

Accepted answer
  1. Candy Luo 12,476 Reputation points

    Hi ,

    After a TCP connection closes, it goes into the TIME_WAIT state for a fixed period. It is a deliberate design feature of TCP.

    You can reduce the value of TcpTimedWaitDelay to allows TCP to release closed connections faster.

    For your reference:

    TIME_WAIT and its design implications for protocols and scalable client server systems

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    Best Regards,



    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

1 additional answer

Sort by: Most helpful
  1. Stan Kasper 1,266 Reputation points

    Thank you. Wow. 4 minute wait time default before releasing closed connections. Will check the RFC to see what the logic is behind that...