masaori335 commented on a change in pull request #7586:
URL: https://github.com/apache/trafficserver/pull/7586#discussion_r638448691
##########
File path: proxy/http2/Http2Stream.cc
##########
@@ -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) {
Review comment:
When `read_vio.nbytes == 0`, ATS retry thie
`Http2Stream::send_request()` call by somehow?
##########
File path: proxy/http2/Http2Stream.cc
##########
@@ -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) {
Review comment:
When `read_vio.nbytes == 0`, ATS retry this
`Http2Stream::send_request()` call by somehow?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]