Skip to content

listener: disallow duplicate port specification - #19145

Merged
mattklein123 merged 4 commits into
mainfrom
fix_duplicate_address
Dec 1, 2021
Merged

mattklein123 merged 4 commits into
mainfrom
fix_duplicate_address

Conversation

@mattklein123

Copy link
Copy Markdown
Member

This bug existed previously, but with the recent reuse port
as the default change is now more obvious. Previously, we would
allow multiple listeners to listen on the same port, which is
obviously very wrong. This change blocks that at config load time.

Fixes #19099

Risk Level: Low
Testing: New UT, the port 0 case is covered by integration tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

This bug existed previously, but with the recent reuse port
as the default change is now more obvious. Previously, we would
allow multiple listeners to listen on the same port, which is
obviously very wrong. This change blocks that at config load time.

Fixes #19099

Signed-off-by: Matt Klein <[email protected]>
Comment thread source/server/listener_manager_impl.cc Resolved

@ggreenway ggreenway left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs release note

Signed-off-by: Matt Klein <[email protected]>
@mattklein123
mattklein123 enabled auto-merge (squash) December 1, 2021 17:14
@mattklein123
mattklein123 disabled auto-merge December 1, 2021 18:30
@mattklein123
mattklein123 merged commit 510f1a9 into main Dec 1, 2021
@mattklein123
mattklein123 deleted the fix_duplicate_address branch December 1, 2021 18:30
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.

Question about different listeners listen same port when enable_reuse_port set to true.

3 participants