Windows sockets need to call shutdown before closesocket. https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-closesocket This causes some issues when the client closed then immediately initiated a new connection. The close isn't being seen by the server until much later causing the accept call to fail.
Created attachment 380165 [details] patch
Created attachment 380166 [details] Rebased patch
Comment on attachment 380166 [details] Rebased patch Clearing flags on attachment: 380166 Committed r250699: <https://trac.webkit.org/changeset/250699>
All reviewed patches have been landed. Closing bug.
<rdar://problem/55973313>