traeak commented on code in PR #13751:
URL: https://github.com/apache/trafficserver/pull/13751#discussion_r4138485872


##########
plugins/slice/client.cc:
##########
@@ -93,6 +93,12 @@ handle_client_req(TSCont contp, TSEvent event, Data *const 
data)
 
     header.setKeyVal(TS_MIME_FIELD_HOST, TS_MIME_LEN_HOST, data->m_hostname, 
data->m_hostlen);
 
+    // Slice never sends a request body on the internal connection. Drop any
+    // body-declaring fields so the internal transaction does not wait for a
+    // body that will never arrive.
+    header.removeKey(TS_MIME_FIELD_CONTENT_LENGTH, TS_MIME_LEN_CONTENT_LENGTH);
+    header.removeKey(TS_MIME_FIELD_TRANSFER_ENCODING, 
TS_MIME_LEN_TRANSFER_ENCODING);

Review Comment:
   taken.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to