Io.Threaded: remove WSA_FLAG_OVERLAPPED from socket call

This commit is contained in:
Chadwain Holness 2026-01-20 15:19:36 -05:00 committed by Andrew Kelley
parent 4b2eae32f1
commit fd3657bf8c

View file

@ -10824,7 +10824,7 @@ fn openSocketWsa(
) !ws2_32.SOCKET {
const mode = posixSocketMode(options.mode);
const protocol = posixProtocol(options.protocol);
const flags: u32 = ws2_32.WSA_FLAG_OVERLAPPED | ws2_32.WSA_FLAG_NO_HANDLE_INHERIT;
const flags: u32 = ws2_32.WSA_FLAG_NO_HANDLE_INHERIT;
var syscall: Syscall = try .start();
while (true) {
const rc = ws2_32.WSASocketW(family, @bitCast(mode), @bitCast(protocol), null, 0, flags);