Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zero port error #5021

Merged
merged 5 commits into from
Jan 16, 2024
Merged

Fix zero port error #5021

merged 5 commits into from
Jan 16, 2024

Conversation

ackintosh
Copy link
Member

@ackintosh ackintosh commented Dec 20, 2023

Issue Addressed

Fixes #5004

Proposed Changes

Changed the code to assign 0 to quic_port if tcp_port == 0.

@jmcph4
Copy link
Member

jmcph4 commented Dec 20, 2023

Does this regress #4745?

@michaelsproul
Copy link
Member

@jmcph4 I don't think we ever fully solved port-reuse, but I think this PR might make it slightly worse. We were already using unused_port::unused_udp4_port in beacon_node/src/config.rs when use_zero_ports=true.

@michaelsproul
Copy link
Member

We also still routinely get crashes on CI due to port reuse

@jmcph4
Copy link
Member

jmcph4 commented Dec 20, 2023

We also still routinely get crashes on CI due to port reuse

I was under the impression this had become a primarily Windows issue now though?

I think this PR might make it slightly worse

I agree -- more unused_*_port use will increase the rate of collisions compared to deferring to the kernel.

@ackintosh
Copy link
Member Author

@jmcph4 @michaelsproul Thanks for your comments! I understand that we should use unused_*_port less to avoid the collisions on CI. I will update to assign 0 to quic_port if tcp_port == 0.

@ackintosh
Copy link
Member Author

📝 I've filed #5024 to fix the check-code failure.

Copy link
Member

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks

@AgeManning AgeManning added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Jan 9, 2024
@AgeManning AgeManning merged commit e10e4b7 into sigp:unstable Jan 16, 2024
27 of 28 checks passed
@ackintosh ackintosh deleted the zero-port-error branch January 16, 2024 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants