From: Christopher Faulet Date: Thu, 13 Jun 2019 09:32:54 +0000 (+0200) Subject: MINOR: backend/htx: Don't rewind output data to set the sni on a srv connection X-Git-Tag: v2.1-dev2~384 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5f86f116baaccac7d01c7ed761c2c755a477891;p=thirdparty%2Fhaproxy.git MINOR: backend/htx: Don't rewind output data to set the sni on a srv connection Rewind on output data is useless for HTX streams. --- diff --git a/src/backend.c b/src/backend.c index 7cfc2f22a6..5590822bec 100644 --- a/src/backend.c +++ b/src/backend.c @@ -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)) {