-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavioros-windowsstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Description
Split from #24588.
std.Build.WebServer is currently intentionally disabled on Windows hosts due to two standard library bugs:
- Writing to a socket on one thread while reading from it on another currently causes a peculiar deadlock. While official documentation doesn't explicitly state this, other resources online suggest that this should work as you would expect. This issue is probably because our current socket reading logic on Windows calls through to
ReadFilerather than a WSA socket read function. - The implementation of
std.posix.writevon Windows currently triggers an infinite loop if a buffer has length 0, as it will always report zero-length writes.
Both of these bugs are expected to be fixed by not-yet-merged changes in the wrangle-writer-buffering branch, at which point this feature can be re-enabled (subject to appropriate testing of course).
kcbanner
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavioros-windowsstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management