[
https://issues.apache.org/jira/browse/TS-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873820#comment-13873820
]
Bryan Call commented on TS-2502:
--------------------------------
Will test it in production before committing...
{code}
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index ff043b2..3770cc3 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -6753,7 +6753,8 @@ HttpTransact::handle_response_keep_alive_headers(State*
s, HTTPVersion ver, HTTP
ka_action = KA_DISABLED;
}
else if (heads->status_get() == HTTP_STATUS_NO_CONTENT &&
- (s->current.server->transfer_encoding != NO_TRANSFER_ENCODING ||
heads->get_content_length() != 0)) {
+ (s->source == SOURCE_HTTP_ORIGIN_SERVER &&
s->current.server->transfer_encoding != NO_TRANSFER_ENCODING
+ || heads->get_content_length() != 0)) {
// some systems hang until the connection closes when receiving a 204
regardless of the K-A headers
// close if there is any body response from the origin
ka_action = KA_CLOSE;
{code}
> 204 cached response cores ATS
> -----------------------------
>
> Key: TS-2502
> URL: https://issues.apache.org/jira/browse/TS-2502
> Project: Traffic Server
> Issue Type: Bug
> Components: Cache, Core
> Affects Versions: 4.2.0
> Reporter: David Carlin
> Assignee: Bryan Call
>
> Related to TS-2419
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)