-
Notifications
You must be signed in to change notification settings - Fork 857
Fix crash in open_close_h2 #7586
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -259,13 +259,16 @@ Http2Stream::send_request(Http2ConnectionState &cstate) | |
| return; | ||
| } | ||
|
|
||
| if (this->recv_end_stream) { | ||
| this->read_vio.nbytes = bufindex; | ||
| this->signal_read_event(VC_EVENT_READ_COMPLETE); | ||
| } else { | ||
| // End of header but not end of stream, must have some body frames coming | ||
| this->has_body = true; | ||
| this->signal_read_event(VC_EVENT_READ_READY); | ||
| // Is the _sm ready to process the header? | ||
| if (this->read_vio.nbytes > 0) { | ||
|
Contributor
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. When
Contributor
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. NVM. Retry on the HTTP/2 side is not required. My understanding is
|
||
| if (this->recv_end_stream) { | ||
| this->read_vio.nbytes = bufindex; | ||
| this->signal_read_event(VC_EVENT_READ_COMPLETE); | ||
| } else { | ||
| // End of header but not end of stream, must have some body frames coming | ||
| this->has_body = true; | ||
| this->signal_read_event(VC_EVENT_READ_READY); | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
||
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 got the same idea while digging another issue.