From 66a1ef97cb24c18a690a439a36faef1f068d61a7 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. (cherry picked from commit 63ef107f927f94e5ae6e9c71e4c90fc082ea40c2) --- proxy/http/HttpSM.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index e9e70cda42d..842e09b17ae 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -858,6 +858,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; }