From 335e4452e9732fe26daf798668091892d5f409bb Mon Sep 17 00:00:00 2001 From: Peter Chou Date: Wed, 19 Sep 2018 11:39:33 -0700 Subject: [PATCH] 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 cc03aecdd8d..ed22a722944 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; }