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

Update quic-go to v0.49.0 #3153

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Update quic-go to v0.49.0 #3153

merged 2 commits into from
Jan 24, 2025

Conversation

MarcoPolo
Copy link
Collaborator

Small breaking change around Errors.Is for StreamError

Small breaking change around Errors.Is for StreamError
@MarcoPolo MarcoPolo requested a review from sukunrt January 23, 2025 23:05
Copy link
Collaborator

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

LGTM

n, err = s.Stream.Read(b)
if err != nil && errors.Is(err, &quic.StreamError{}) {
if err != nil && errors.As(err, &streamErr) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, this is due to a breaking change in quic-go to make errors.Is be an approximation for an equality check instead of for type checking as it was before. Given the situation LGTM.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's correct. We implemented errors.Is incorrectly for the longest time, and now we finally fixed this.

@MarcoPolo MarcoPolo merged commit fde0e3a into master Jan 24, 2025
11 checks passed
MarcoPolo added a commit that referenced this pull request Jan 24, 2025
(cherry picked from commit fde0e3a)
@MarcoPolo MarcoPolo mentioned this pull request Dec 26, 2024
21 tasks
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.

3 participants