mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 14:49:45 -04:00
BUG/MINOR: http: don't log a 503 on client errors while waiting for requests
If a client aborts a request with an error (typically a TCP reset), we must log a 400. Till now we did not set the status nor close the stream interface, causing the request to attempt to be forwarded and logging a 503. Should be backported to 1.4 which is affected as well.
This commit is contained in:
parent
1eb20efe70
commit
dc979f2492
1 changed files with 2 additions and 0 deletions
|
|
@ -2334,6 +2334,8 @@ int http_wait_for_request(struct session *s, struct channel *req, int an_bit)
|
|||
session_inc_http_err_ctr(s);
|
||||
}
|
||||
|
||||
txn->status = 400;
|
||||
stream_int_retnclose(req->prod, NULL);
|
||||
msg->msg_state = HTTP_MSG_ERROR;
|
||||
req->analysers = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue