mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 09:21:35 -04:00
MEDIUM: http: make keep-alive + httpclose be passive mode
There's no particular reason for having keep-alive + httpclose combine into forceclose when set in different frontend/backend sections, since keep-alive does not close anything by default. Let's have this still combination remain httpclose only.
This commit is contained in:
parent
02bce8be01
commit
f8b0e03f49
1 changed files with 2 additions and 2 deletions
|
|
@ -3568,8 +3568,8 @@ int http_process_req_common(struct session *s, struct channel *req, int an_bit,
|
|||
(s->be->options & PR_O_HTTP_MODE) == PR_O_HTTP_FCL)
|
||||
tmp = TX_CON_WANT_CLO;
|
||||
|
||||
/* option httpclose + anything other than tunnel => close */
|
||||
if (tmp != TX_CON_WANT_TUN &&
|
||||
/* option httpclose + server_close => forceclose */
|
||||
if (tmp == TX_CON_WANT_SCL &&
|
||||
((s->fe->options & PR_O_HTTP_MODE) == PR_O_HTTP_PCL ||
|
||||
(s->be->options & PR_O_HTTP_MODE) == PR_O_HTTP_PCL))
|
||||
tmp = TX_CON_WANT_CLO;
|
||||
|
|
|
|||
Loading…
Reference in a new issue