]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: backend/htx: Don't rewind output data to set the sni on a srv connection
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 13 Jun 2019 09:32:54 +0000 (11:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
Rewind on output data is useless for HTX streams.

src/backend.c

index 7cfc2f22a691ed2e06e6a91dbc462239ff61f72c..5590822becdc963e3683fe22ab220b2457a53de7 100644 (file)
@@ -1655,15 +1655,8 @@ int connect_server(struct stream *s)
                                c_adv(&s->req, rewind);
                        }
                        else {
-                               /* rewind the output data. */
-                               rewind = co_data(&s->req);
-                               c_rew(&s->req, rewind);
-
                                smp = sample_fetch_as_type(s->be, s->sess, s, SMP_OPT_DIR_REQ | SMP_OPT_FINAL,
                                                           srv->ssl_ctx.sni, SMP_T_STR);
-
-                               /* restore the pointers */
-                               c_adv(&s->req, rewind);
                        }
 
                        if (smp_make_safe(smp)) {