mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-23 21:22:17 +00:00
BUG/MINOR: contrib/mod_defender: 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.
This commit is contained in:
parent
b47e438593
commit
72de8eb7aa
@ -1452,7 +1452,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user