Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
transport: add timeout for writing GOAWAY on http2Client.Close() #7371
transport: add timeout for writing GOAWAY on http2Client.Close() #7371
Changes from 18 commits
6c316d6
284f45b
44d0979
73da571
b083d8c
2525c9b
cd7b716
bc66ca9
8ffe575
a684542
59cc230
b9a16d4
3ec2ccb
4a6bcf5
205fbdf
a7a7bb5
9636c56
aebe562
fad99ba
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 1024 in internal/transport/http2_client.go
Codecov / codecov/patch
internal/transport/http2_client.go#L1023-L1024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the atomic?
This is worse, since you're just assuming that: 1. Nothing else written will be the size of the GOAWAY frame, and 2. the GOAWAY will be written to the connection, by itself, in a single operation.