From 58b8e492a311b5dfec533734c1e22ea76d352aed Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 31 May 2018 16:05:21 +0200 Subject: [PATCH] BUG/MINOR: contrib/modsecurity: Don't reset the status code during disconnect When the connection is closed by HAProxy, the status code provided in the DISCONNECT frame is lost. By retransmitting it in the agent's reply, we are sure to have it in the SPOE logs. This patch may be backported in 1.8. --- contrib/modsecurity/spoa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/contrib/modsecurity/spoa.c b/contrib/modsecurity/spoa.c index 18ef1d245..81e311849 100644 --- a/contrib/modsecurity/spoa.c +++ b/contrib/modsecurity/spoa.c @@ -1481,7 +1481,6 @@ read_frame_cb(evutil_socket_t fd, short events, void *arg) if (client->status_code != SPOE_FRM_ERR_NONE) LOG(client->worker, "<%lu> Peer closed connection: %s", client->id, spoe_frm_err_reasons[client->status_code]); - client->status_code = SPOE_FRM_ERR_NONE; goto disconnect; }