Skip to content

sockets: Restore compatibility with Unix-like platforms - #165

Closed
vvoland wants to merge 1 commit into
mainfrom
unixlike
Closed

sockets: Restore compatibility with Unix-like platforms#165
vvoland wants to merge 1 commit into
mainfrom
unixlike

Conversation

@vvoland

@vvoland vvoland commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

The non-Linux backlog implementation used syscall.SysctlUint32, which is only available on BSD systems. This prevented Illumos and other Unix-like systems from compiling even though they should use the portable fallback.

Limit dynamic backlog detection to BSD systems and use syscall.SOMAXCONN elsewhere.
Cross-build supported operating systems in CI to catch similar platform-specific symbol errors.

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

The non-Linux backlog implementation used `syscall.SysctlUint32`, which
is only available on BSD systems. This prevented Illumos and other
Unix-like systems from compiling even though they should use the
portable fallback.

Limit dynamic backlog detection to BSD systems and use
`syscall.SOMAXCONN` elsewhere.
Cross-build supported operating systems in CI to catch similar
platform-specific symbol errors.

Signed-off-by: Paweł Gronowski <git@grono.dev>
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.

v0.8.0 breaks compilation for Illumos/amd64

1 participant