Extracted from https://github.com/ziglang/zig/pull/25592. * check if EINPROGRESS needs to be handled * separate the function for Windows and call ws2_32.WSASendMsg directly rather than going through posix namespace * add a unit test
Extracted from #25592.