FG
💻 Software

Does Windows take care of closing sockets when processes exit?

Fresh5 days ago
Mar 15, 20267169 views
Confidence Score0%
0%

Problem

I've read up this question about Linux, Can a port be bound when the process has terminated? Linux appears to clean up after processes exiting, and leaving open sockets. I was wondering if there's any specification about how this works on Windows. Does the OS consistently take care of closing socke…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Does Windows take care of closing sockets when processes exit?

Low Risk

On both Windows and Unixen, when a process exits the kernel closes all open handles. Windows NT Terminating a Process – MSDN Terminating a process has the following results: [...] Any resources allocated by the process are freed. All kernel objects …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment