Skip to content

Namespace listener names by port#2

Merged
lpgauth merged 1 commit into
masterfrom
fix/listener-name-collision
May 14, 2026
Merged

Namespace listener names by port#2
lpgauth merged 1 commit into
masterfrom
fix/listener-name-collision

Conversation

@lpgauth

@lpgauth lpgauth commented May 14, 2026

Copy link
Copy Markdown
Owner

No description provided.

start_listeners/2 named acceptor processes purely by their
iteration index (whitecap_listener_<N>), so two calls on the
same node collided as soon as the second countdown reached an
N already used by the first. A typical setup of one metrics
listener on 9091 plus sixteen on the main port crashed on
whitecap_listener_1.

Including the configured port in the registered name makes
multiple start_listeners calls on different ports independent.
Same port + same N still collides, which is the only case that
should: rerunning start_listeners against an already-started
port is a real error.

Bump to 0.1.2 and add an e2e regression test that starts a
second listener group on a different port.
@lpgauth lpgauth merged commit d7e7f65 into master May 14, 2026
4 checks passed
@lpgauth lpgauth deleted the fix/listener-name-collision branch May 14, 2026 14:49
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