trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch master updated: Set log code when closing half open connections.
Date Thu, 20 Sep 2018 20:45:33 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 63ef107  Set log code when closing half open connections.
63ef107 is described below

commit 63ef107f927f94e5ae6e9c71e4c90fc082ea40c2
Author: Peter Chou <pbchou@labs.att.com>
AuthorDate: Wed Sep 19 11:39:33 2018 -0700

    Set log code when closing half open connections.
    
    Since we now disallow half open connections for HTTP1/TLS we need
    to set the log code when we close these connections so that
    the 'crc' code is ERR_CLIENT_ABORT rather than ERR_UNKNOWN.
---
 proxy/http/HttpSM.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 8bba961..d8bfcc4 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -870,6 +870,7 @@ HttpSM::state_watch_for_client_abort(int event, void *data)
       ua_entry = nullptr;
       tunnel.kill_tunnel();
       terminate_sm = true; // Just die already, the requester is gone
+      set_ua_abort(HttpTransact::ABORTED, event);
     }
     break;
   }


Mime
View raw message