Repository navigation
HTTP2: change the default reset code from no error to internal error - #42269
Conversation
Signed-off-by: wbpcode <[email protected]>
| codec_callbacks_->onCodecLowLevelReset(); | ||
| // TODO(wbpcode): this ensure that onCodecLowLevelReset is only called once. But | ||
| // we should replace this with a better design later. | ||
| // See https://github.com/envoyproxy/envoy/issues/42264 for why we need this. | ||
| if (!codec_low_level_reset_is_called_) { | ||
| codec_low_level_reset_is_called_ = true; | ||
| codec_callbacks_->onCodecLowLevelReset(); | ||
| } |
There was a problem hiding this comment.
This PR changed the default stream reset code and will enlarger the problem in the #42264. So, I made a quick work around to resolve problem here.
|
Compare to the change in the #40729, this PR removed all RemoteResetNoError related things. This is because:
|
Signed-off-by: wbpcode <[email protected]>
|
/retest |
|
At a high level this makes sense to me: send NO_ERROR only if the response is complete. I don't have the time to analyze the details on this so will defer to others on that. |
Signed-off-by: wbpcode <[email protected]>
Signed-off-by: wbpcode <[email protected]>
… dev-fix-http2-error
Signed-off-by: wbpcode <[email protected]>
botengyao
left a comment
There was a problem hiding this comment.
thanks! lgtm overall module one concern.
/wait
| Runtime::runtimeFeatureEnabled("envoy.reloadable_features.reset_with_error"); | ||
| // We should not propagate UpstreamProtocolError to downstream as that indicates | ||
| // an error on the upstream connection and may have nothing to do with the downstream. | ||
| // But we do need to handle DownstreamProtocolError which indicates a protocol error | ||
| // on the downstream connection. |
There was a problem hiding this comment.
Emm, I understand the use of resetStream() is to downstream, but still think we need to propagate the ProtocolError if there are either DownstreamProtocolError or UpstreamProtocolError, and keep consistent as before. If you are strong with this, would an additional PR with a new runtime guard, saying that UpstreamProtocolError is rest with LocalRest be better?
There was a problem hiding this comment.
I reverted it and left a TODO there.
… dev-fix-http2-error
|
/retest |
Signed-off-by: wbpcode <[email protected]>
|
/retest |
Signed-off-by: code <[email protected]>
44990ec
|
/retest |
related to #42269 Commit Message: Additional Description: Risk Level: Testing: Docs Changes: Release Notes: Platform Specific Features: --------- Signed-off-by: Boteng Yao <[email protected]>
…nvoyproxy#42269) Commit Message: HTTP2: change the default reset code from no error to internal error Additional Description: This PR makes Envoy generate less NO_ERROR from the codec when there is a stream reset to close envoyproxy#36200. https://httpwg.org/specs/rfc9113.html#RST_STREAM https://httpwg.org/specs/rfc9113.html#ErrorCodes Thanks so much for the great work from @botengyao in the envoyproxy#40729 Risk Level: mid. Testing: unit + integration Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] [Optional Fixes #Issue] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] --------- Signed-off-by: wbpcode <[email protected]> Signed-off-by: code <[email protected]> Signed-off-by: Gustavo <[email protected]>
related to envoyproxy#42269 Commit Message: Additional Description: Risk Level: Testing: Docs Changes: Release Notes: Platform Specific Features: --------- Signed-off-by: Boteng Yao <[email protected]> Signed-off-by: Gustavo <[email protected]>
Commit Message: HTTP2: change the default reset code from no error to internal error
Additional Description:
This PR makes Envoy generate less NO_ERROR from the codec when there is a stream reset to close #36200.
https://httpwg.org/specs/rfc9113.html#RST_STREAM
https://httpwg.org/specs/rfc9113.html#ErrorCodes
Thanks so much for the great work from @botengyao in the #40729
Risk Level: mid.
Testing: unit + integration
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]