+30
−3
+27
−2
Loading
tcp/udp::bind() and tcp::listen() on Windows had no _Bound/_Listening
guard, unlike POSIX. Callers that bind before the event loop (blogi)
got a second ::bind() from iocp event init, which fails with WSAEINVAL
on every port ("tcp::bind failed"). Also append WSAGetLastError() with
a short hint to bind/listen/socket-creation errors.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>