Skip to content

build system web interface does not support Windows #24650

@mlugg

Description

@mlugg

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 ReadFile rather than a WSA socket read function.
  • The implementation of std.posix.writev on 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-windowsstandard libraryThis issue involves writing Zig code for the standard library.zig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions