atproto relay in zig zlay.waow.tech
relay zig atproto

fix netListenIp: sync syscalls for bind/listen (kernel <6.11) master

IORING_OP_BIND and IORING_OP_LISTEN require kernel 6.11+. Our server is on 6.8 — the kernel returns EINVAL for unknown opcodes, surfacing as error.Unexpected. Use direct linux.bind()/linux.listen() syscalls instead (instant, non-blocking — same approach as getsockname). IORING_OP_ACCEPT (5.5), IORING_OP_CONNECT (5.5), IORING_OP_SOCKET (5.19), and IORING_OP_SENDMSG/RECVMSG/READV (5.3-5.6) all work fine. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>


+36 -61
1 changed file