Skip to content

net_io: bind up to 64 addresses per listening port - #200

Closed
enricolorenzoni59 wants to merge 1 commit into
wiedehopf:devfrom
enricolorenzoni59:fix/bind-64-addresses
Closed

enricolorenzoni59 wants to merge 1 commit into
wiedehopf:devfrom
enricolorenzoni59:fix/bind-64-addresses

Conversation

@enricolorenzoni59

@enricolorenzoni59 enricolorenzoni59 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

if you really want 64 addresses... :)

newfds holds the descriptors anetTcpServer() returns for one bind
argument. The count passed to it is the array capacity now, so the 16
entry array silently ignored every address a hostname resolved to beyond
the first 16. Raise it to 64: getaddrinfo() rarely returns more, 64 ints
are 256 bytes of stack, and --net-bind-address then uses every address of
a multi-address name.

With an interposer returning 40 addresses for one name, readsb listened on
16 sockets before this change and on 40 after it.
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.

2 participants