This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new b3f33ff  Fix a bug that chunked resopnses aren't logged properly if 
the client side is H2
b3f33ff is described below

commit b3f33ff99f25a5874e3e6bdec4b59a6fec766d5a
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
---
 proxy/http2/Http2Stream.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/proxy/http2/Http2Stream.h b/proxy/http2/Http2Stream.h
index 884a0c0..fabb4bd 100644
--- a/proxy/http2/Http2Stream.h
+++ b/proxy/http2/Http2Stream.h
@@ -75,6 +75,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].

Reply via email to