-
Notifications
You must be signed in to change notification settings - Fork 5.3k
health check: gracefully handle GOAWAY in grpc health checker #11324
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
Merged
+259
−29
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e4ddb8e
health check: gracefully handle GOAWAY in grpc health checker
jmuia 70263a6
Close connection after logging and add unit test for remote close
jmuia a069698
wip
murray-stripe 725caf8
wip - plumb through
jmuia 58d2143
Merge branch 'envoyproxy/master' into jmuia.grpc-hc-goaway
jmuia 00a1fea
fix format with 'tools/code_format/check_format.py fix'
jmuia 1828a2b
Revert "fix format with 'tools/code_format/check_format.py fix'"
murray-stripe 64c6aef
Merge pull request #1 from jmuia/wip/grpc-hc-goaway
murray-stripe 6ba45a4
only handle GOAWAY NO_ERROR gracefully
jmuia c5958dc
add inline comments
jmuia b474edd
make quic error mapper consistent with http2
jmuia 9171180
fix up declaration
jmuia 73e7308
run onGoAway callbacks for each GOAWAY received
jmuia dc5effd
rename ErrorCode to GoAwayErrorCode
jmuia 7c7d930
rename received_goaway_ to received_no_error_goaway_
jmuia 41ea1e1
fix format
jmuia a66c176
add comment to GoAwayErrorCode enum
jmuia bf9c59c
Revert "run onGoAway callbacks for each GOAWAY received"
jmuia 878bd4a
Add TODO for handling multiple GOAWAY frames
jmuia 541eb54
kick ci
jmuia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -317,7 +317,7 @@ TEST_P(Http2CodecImplTest, ShutdownNotice) { | |
| EXPECT_CALL(request_decoder_, decodeHeaders_(_, true)); | ||
| request_encoder_->encodeHeaders(request_headers, true); | ||
|
|
||
| EXPECT_CALL(client_callbacks_, onGoAway()); | ||
| EXPECT_CALL(client_callbacks_, onGoAway(_)); | ||
| server_->shutdownNotice(); | ||
| server_->goAway(); | ||
|
|
||
|
|
@@ -1456,7 +1456,7 @@ TEST_P(Http2CodecImplTest, LargeRequestHeadersExceedPerHeaderLimit) { | |
| request_headers.addCopy("big", long_string); | ||
|
|
||
| EXPECT_CALL(request_decoder_, decodeHeaders_(_, _)).Times(0); | ||
| EXPECT_CALL(client_callbacks_, onGoAway()); | ||
| EXPECT_CALL(client_callbacks_, onGoAway(_)); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't completely follow why this test doesn't trigger |
||
| server_->shutdownNotice(); | ||
| server_->goAway(); | ||
| request_encoder_->encodeHeaders(request_headers, true); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
sorry should have mention this but this should have a doc comment as its in
include/