projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72de8eb
)
BUG/MINOR: contrib/modsecurity: Don't reset the status code during disconnect
author
Christopher Faulet
<cfaulet@haproxy.com>
Thu, 31 May 2018 14:05:21 +0000
(16:05 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Mon, 4 Jun 2018 15:34:51 +0000
(17:34 +0200)
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
patch
|
blob
|
history
diff --git
a/contrib/modsecurity/spoa.c
b/contrib/modsecurity/spoa.c
index
18ef1d2
..
81e3118
100644
(file)
--- 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;
}