Skip to content

Conversation

derrandz
Copy link

Fixes this part of the issue: #3340 (comment)

@MarcoPolo
Copy link
Collaborator

It is an error to try to Listen on the same address twice. This is probably not what you want.

@derrandz
Copy link
Author

hmmmm, what should we do when passed two identical listen addresses? that muxer panic is very ambiguous. maybe we should handle this case? passing two addresses is a user bug ofc but it was disorientating enough to see that panic

@MarcoPolo
Copy link
Collaborator

a better error would be a welcome change

@derrandz derrandz changed the title fix: return existing virtual listener for same address and version fix: remove duplicate listen addresses to avoid muxer panic Jul 29, 2025
@derrandz
Copy link
Author

@MarcoPolo I went with a solution to simply ignore and discard duplicate listen addresses. Wdyt? or shall we return an error on validate?

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