]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: proxy: Don't adjust connection mode of HTTP proxies anymore
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jul 2019 13:59:53 +0000 (15:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
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

index a49ca6638b64474c8990656b95f7397c0c389f13..8a5c7f14e8194f9abdbbe9441bb759e3600ffdbe 100644 (file)
@@ -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) {