-
Notifications
You must be signed in to change notification settings - Fork 848
h2spec: handling PRIORITY frame that depend on itself #1752
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
Conversation
|
[approve ci] |
|
RAT check successful! https://ci.trafficserver.apache.org/job/RAT-github/356/ |
|
FreeBSD11 build successful! https://ci.trafficserver.apache.org/job/freebsd-github/2038/ |
|
Intel CC build successful! https://ci.trafficserver.apache.org/job/icc-github/469/ |
|
AU check successful! https://ci.trafficserver.apache.org/job/autest-github/340/ |
|
clang format successful! https://ci.trafficserver.apache.org/job/clang-format-github/345/ |
|
Linux build successful! https://ci.trafficserver.apache.org/job/linux-github/1933/ |
|
clang-analyzer build successful! https://ci.trafficserver.apache.org/job/clang-analyzer-github/602/ |
maskit
left a comment
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.
I don't think we should treat it as a connection error.
proxy/http2/Http2ConnectionState.cc
Outdated
|
|
||
| // A stream cannot depend on itself. An endpoint MUST treat this as a stream error of type PROTOCOL_ERROR. | ||
| if (stream_id == priority.stream_dependency) { | ||
| return Http2Error(Http2ErrorClass::HTTP2_ERROR_CLASS_CONNECTION, Http2ErrorCode::HTTP2_ERROR_PROTOCOL_ERROR, |
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.
The spec says treat it as a stream error, so please use HTTP2_ERROR_CLASS_STREAM instead.
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.
@maskit Thanks! Fixed.
|
Thanks. |
|
@maskit Do we want this in 7.1.0 ? |
|
@zwoop I think we should. Masaori says it might cause memory leak. |
|
Cherry picked to 7.1.x, building and testing on docs now. |
The issue reported by
h2specisWith this fix,