mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-03 22:02:52 -04:00
[MEDIUM] http: make forceclose use SI_FL_NOLINGER
Option forceclose is not limited to the shortage of source ports anymore thanks to this flag.
This commit is contained in:
parent
4c283dce4b
commit
9438c718ce
1 changed files with 6 additions and 1 deletions
|
|
@ -3318,7 +3318,12 @@ int http_request_forward_body(struct session *s, struct buffer *req, int an_bit)
|
|||
*/
|
||||
|
||||
if ((s->fe->options | s->be->options) & PR_O_FORCE_CLO) {
|
||||
/* option forceclose is set, let's enforce it now that the transfer is complete. */
|
||||
/* Option forceclose is set, let's enforce it now
|
||||
* that the transfer is complete. We can safely speed
|
||||
* up the close because we know the server has received
|
||||
* everything we wanted it to receive.
|
||||
*/
|
||||
req->cons->flags |= SI_FL_NOLINGER;
|
||||
buffer_abort(req);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue