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

level down libp2p quic accept and close errors #6148

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

jxs
Copy link
Member

@jxs jxs commented Jul 22, 2024

Issue Addressed

After quinn-rs/quinn#1804 quinn now returns this accept error which is also bubbled by libp2p as a ListenerError, this PR silences libp2p-quic accept errors in general as they are mostly connection refusals.
libp2p::quic::Error::Connection also covers connection close errors which are also redundant on our case.

}
None
Copy link
Member Author

Choose a reason for hiding this comment

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

previously we were checking the number of listeners, but it's redundant here as they will only decrease if gracefully closed, ListenerErrors are non fatal and therefore shouldn't close the listener

@jxs jxs force-pushed the ignore-libp2p-quic-accept-errors branch from 8824d44 to 09a2acc Compare July 22, 2024 17:38
@jxs jxs changed the title Ignore libp2p quic accept and close errors level down libp2p quic accept and close errors Jul 22, 2024
@jxs jxs force-pushed the ignore-libp2p-quic-accept-errors branch from 09a2acc to 5ec2ffb Compare July 22, 2024 18:00
@ackintosh ackintosh added ready-for-review The code is ready for review Networking labels Jul 22, 2024
Copy link
Member

@ackintosh ackintosh 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!

@AgeManning
Copy link
Member

@Mergifyio queue

Copy link

mergify bot commented Jul 23, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at d72dca5

mergify bot added a commit that referenced this pull request Jul 23, 2024
@chong-he chong-he added the v5.3.0 Q3 2024 release with database changes! label Jul 23, 2024
@mergify mergify bot merged commit d72dca5 into sigp:unstable Jul 23, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking ready-for-review The code is ready for review v5.3.0 Q3 2024 release with database changes!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants