This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 8.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit ad1be6890e52f99fccdef417b57bf48c32f62740 Author: Masaori Koshiba <[email protected]> AuthorDate: Fri Jun 14 09:23:26 2019 +0900 HTTP/2: increment write_vio.ndone by consumed size (cherry picked from commit d3639e0f98d319f77a6fbd4ced5465578d64ad87) --- proxy/http2/Http2Stream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/http2/Http2Stream.cc b/proxy/http2/Http2Stream.cc index 66c8a1d..5d17881 100644 --- a/proxy/http2/Http2Stream.cc +++ b/proxy/http2/Http2Stream.cc @@ -593,8 +593,8 @@ Http2Stream::update_write_request(IOBufferReader *buf_reader, int64_t write_len, // Still parsing the response_header int bytes_used = 0; int state = this->response_header.parse_resp(&http_parser, this->response_reader, &bytes_used, false); - // HTTPHdr::parse_resp() consumed the response_reader in above - write_vio.ndone += this->response_header.length_get(); + // HTTPHdr::parse_resp() consumed the response_reader in above (consumed size is `bytes_used`) + write_vio.ndone += bytes_used; switch (state) { case PARSE_RESULT_DONE: {
