You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2011/04/26 12:13:21 UTC

svn commit: r1096712 - /trafficserver/traffic/trunk/proxy/http/HttpSM.cc

Author: zwoop
Date: Tue Apr 26 10:13:21 2011
New Revision: 1096712

URL: http://svn.apache.org/viewvc?rev=1096712&view=rev
Log:
TS-749 Connection hangs if origin server goes down in the middle of a response
Author: William Bardwell
Review: leif

Modified:
    trafficserver/traffic/trunk/proxy/http/HttpSM.cc

Modified: trafficserver/traffic/trunk/proxy/http/HttpSM.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http/HttpSM.cc?rev=1096712&r1=1096711&r2=1096712&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http/HttpSM.cc (original)
+++ trafficserver/traffic/trunk/proxy/http/HttpSM.cc Tue Apr 26 10:13:21 2011
@@ -2754,6 +2754,8 @@ HttpSM::tunnel_handler_server(int event,
       Debug("http", "[%" PRId64 "] [HttpSM::tunnel_handler_server] aborting cache writes due to server truncation", sm_id);
       tunnel.abort_cache_write_finish_others(p);
       t_state.current.server->abort = HttpTransact::ABORTED;
+      t_state.client_info.keep_alive = HTTP_NO_KEEPALIVE;
+      t_state.current.server->keep_alive = HTTP_NO_KEEPALIVE;
       if (t_state.http_config_param->log_spider_codes) {
         t_state.squid_codes.wuts_proxy_status_code = WUTS_PROXY_STATUS_SPIDER_TIMEOUT_WHILE_DRAINING;
         t_state.squid_codes.log_code = SQUID_LOG_ERR_SPIDER_TIMEOUT_WHILE_DRAINING;