You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2022/12/13 23:49:49 UTC

[trafficserver] branch 9.1.x updated: drain request body on cache noop action (#9242)

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

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


The following commit(s) were added to refs/heads/9.1.x by this push:
     new 0ba19c72b drain request body on cache noop action (#9242)
0ba19c72b is described below

commit 0ba19c72b70a25e3dfbbc3f507427314ba2afd80
Author: Chris McFarlen <ch...@mcfarlen.us>
AuthorDate: Tue Dec 13 17:49:43 2022 -0600

    drain request body on cache noop action (#9242)
---
 proxy/http/HttpSM.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index de0d23392..b8780ddac 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -7692,6 +7692,9 @@ HttpSM::set_next_state()
     if (server_entry != nullptr && server_entry->in_tunnel == false) {
       release_server_session();
     }
+
+    do_drain_request_body(t_state.hdr_info.client_response);
+
     // If we're in state SEND_API_RESPONSE_HDR, it means functions
     // registered to hook SEND_RESPONSE_HDR have already been called. So we do not
     // need to call do_api_callout. Otherwise TS loops infinitely in this state !