Skip to content

Support configurable IPv4 listener addresses - #6

Merged
renerocksai merged 3 commits into
mainfrom
feat/configurable-bind-address
Sep 13, 2026
Merged

renerocksai merged 3 commits into
mainfrom
feat/configurable-bind-address

Conversation

@renerocksai

@renerocksai renerocksai commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

LAN applications could not select a listener address because every backend bound to loopback. Add Config.bind_address with the existing loopback default, an allocation-free numeric IPv4 parser, and --bind-address on the executable. Linux/macOS listeners and Windows direct/acceptor listeners use the selected address; listenerless Windows destinations stay listenerless.

The setting is fixed-size startup configuration. Existing admission limits, budgets, and backpressure continue to apply. Old transport constructors preserve their defaults. README, embedding/transport guides, and the HTML engineering paper describe wildcard and specific-address use.

Validation passed at 3f0ef4644ddb51092a0580c207fc5e0f2c5de9a0:

  • Native Linux/macOS CI: exact Zig 0.16.0, Debug/ReleaseSafe verification and the complete ReleaseSafe wire suites.
  • Native Windows IOCP gate: Windows Server 2025 x64, build 26100.33296, image win25-vs2026/20260907.229.1, exact Zig 0.16.0; Debug/ReleaseSafe verification, all wire suites, 32 generic integration groups, nine shard/handoff groups, and console shutdown. This is native execution, not cross-compilation.
  • Local Mac development validation: macOS 26.6.2 build 25G83, ARM64, exact Zig 0.16.0, both verification modes and all six wire suites passed against a hash-validated snapshot with the same runtime sources.

New cases cover default/explicit/wildcard binding, admission refusal and recovery, invalid startup input, Linux alternate loopback, and Linux/Windows sharding. Windows admission checks recognize both reset and aborted accepted sockets, while still requiring two acknowledged live connections, a rejection counter, and later recovery. No LAN throughput or deployment qualification is claimed.

This is the engine prerequisite for Baz PR #7. No TLS, IPv6, hostname resolution, or runtime rebinding is added.

@renerocksai
renerocksai merged commit cf436eb into main Sep 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant