]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: Remove tests on the option 'http-use-htx' in stream_new()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jul 2019 12:58:26 +0000 (14:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
All streams created for an HTTP proxy must now use the HTX internal
resprentation. So, it is no more necessary to test the flag PR_O2_USE_HTX. It
means a stream is an HTX stream if the frontend is an HTTP proxy or if the
frontend multiplexer, if any, set the flag MX_FL_HTX.

src/stream.c

index 60f62c3d931aac293ad61cbbc579dcb36c245bc2..caf16c16e3ac1bcfd3b3c60dc2c96fa31d762116 100644 (file)
@@ -246,8 +246,8 @@ struct stream *stream_new(struct session *sess, enum obj_type *origin)
                if (cs->conn->mux->flags & MX_FL_HTX)
                        s->flags |= SF_HTX;
        }
-       /* Set SF_HTX flag for HTX frontends. */
-       if (sess->fe->mode == PR_MODE_HTTP && sess->fe->options2 & PR_O2_USE_HTX)
+        /* Set SF_HTX flag for HTTP frontends. */
+       if (sess->fe->mode == PR_MODE_HTTP)
                s->flags |= SF_HTX;
 
        /* attach the incoming connection to the stream interface now. */