This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 7.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit fc3f4a0bb57a099843858760bf4648b101a1432f Author: Masakazu Kitajo <[email protected]> AuthorDate: Tue Feb 6 16:50:21 2018 +0900 Fix a bug that chunked resopnses aren't logged properly if the client side is H2 (cherry picked from commit b3f33ff99f25a5874e3e6bdec4b59a6fec766d5a) --- proxy/http2/Http2Stream.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxy/http2/Http2Stream.h b/proxy/http2/Http2Stream.h index b6e1261..d240b46 100644 --- a/proxy/http2/Http2Stream.h +++ b/proxy/http2/Http2Stream.h @@ -102,6 +102,11 @@ public: mark_body_done() { body_done = true; + if (response_is_chunked()) { + ink_assert(chunked_handler.state == ChunkedHandler::CHUNK_READ_DONE || + chunked_handler.state == ChunkedHandler::CHUNK_READ_ERROR); + this->write_vio.nbytes = response_header.length_get() + chunked_handler.dechunked_size; + } } void -- To stop receiving notification emails like this one, please contact [email protected].
