You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2021/04/01 22:56:53 UTC

[trafficserver] branch 8.1.x updated: Update server_response_body_bytes when background fill worked (#7621) (#7658)

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

masaori pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/8.1.x by this push:
     new 693e4db  Update server_response_body_bytes when background fill worked (#7621) (#7658)
693e4db is described below

commit 693e4dbfe4366b253da5c20cad49c5a6e9b2ea80
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Fri Apr 2 07:56:44 2021 +0900

    Update server_response_body_bytes when background fill worked (#7621) (#7658)
    
    (cherry picked from commit ba977148eb4bf7b4c4da818f2e4f797f576280ce)
---
 proxy/http/HttpSM.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index eb1dc93..e43fd32 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -3403,6 +3403,10 @@ HttpSM::tunnel_handler_cache_write(int event, HttpTunnelConsumer *c)
     break;
   }
 
+  if (background_fill != BACKGROUND_FILL_NONE) {
+    server_response_body_bytes = c->bytes_written;
+  }
+
   HTTP_DECREMENT_DYN_STAT(http_current_cache_connections_stat);
   return 0;
 }