-
Notifications
You must be signed in to change notification settings - Fork 847
TS-4542: ASAN error with HTTP/2 #760
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
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/372/ for details. |
|
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/268/ for details. |
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/374/ for details. |
|
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/270/ for details. |
proxy/http2/Http2ConnectionState.cc
Outdated
| } | ||
|
|
||
| if (stream->is_body_done() && payload_length < available_size) { | ||
| if (stream->is_body_done() && payload_length <= available_size) { |
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.
This could be problem when response body size is larger than 16375.
$ /opt/nghttp2/bin/nghttp -n "https://127.0.0.1:4443/httpbin/bytes/16376"
Some requests were not processed. total=1, processed=0
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.
IMO, to stop sending 0 payload DATA frame with END_STREAM flag, we need to check read available size of current_reader. Something like this.
https://paste.apache.org/8eVP
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.
Yeah, I updated the patch with <= so that it would set the END_STREAM on a 0 length frame. Thanks for the feedback about > 16375.
|
Looks good to me. |
|
Linux build failed! See https://ci.trafficserver.apache.org/job/Github-Linux/276/ for details. |
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/380/ for details. |
|
LGTM |
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/381/ for details. |
|
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/277/ for details. |
) (apache#760) * Updated log message * Added a comment (cherry picked from commit ec3bcf3)
No description provided.