From 4cb2828e9669a70ef7685d7cf0eb950aa598a4ae Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 15 Jul 2019 15:59:53 +0200 Subject: [PATCH] MINOR: proxy: Don't adjust connection mode of HTTP proxies anymore This was only used for the legacy HTTP mode where the connection mode was handled by the HTTP analyzers. In HTX, the function http_adjust_conn_mode() does nothing. The connection mode is handled by the muxes. --- src/proxy.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/proxy.c b/src/proxy.c index a49ca6638..8a5c7f14e 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -1447,14 +1447,6 @@ int stream_set_backend(struct stream *s, struct proxy *be) if (be->options2 & PR_O2_RSPBUG_OK) s->txn->rsp.err_pos = -1; /* let buggy responses pass */ - /* If we chain to an HTTP backend running a different HTTP mode, we - * have to re-adjust the desired keep-alive/close mode to accommodate - * both the frontend's and the backend's modes. - */ - if (strm_fe(s)->mode == PR_MODE_HTTP && be->mode == PR_MODE_HTTP && - ((strm_fe(s)->options & PR_O_HTTP_MODE) != (be->options & PR_O_HTTP_MODE))) - http_adjust_conn_mode(s, s->txn, &s->txn->req); - /* If we chain a TCP frontend to an HTX backend, we must upgrade * the client mux */ if (!IS_HTX_STRM(s) && be->mode == PR_MODE_HTTP) {