From: Olivier Houchard Date: Fri, 9 Aug 2019 15:50:05 +0000 (+0200) Subject: BUG/MEDIUM: proxy: Don't forget the SF_HTX flag when upgrading TCP=>H1+HTX. X-Git-Tag: v2.1-dev2~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71b20c26bef68e2c7d52f1cfcdc7321d12c58e9e;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: proxy: Don't forget the SF_HTX flag when upgrading TCP=>H1+HTX. In stream_end_backend(), if we're upgrading from TCP to H1/HTX, as we don't destroy the stream, we have to add the SF_HTX flag on the stream, or bad things will happen. This was broken when attempting to fix github issue #196. This should be backported to 2.0. --- diff --git a/src/proxy.c b/src/proxy.c index af4809fe9e..1abb780e6d 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -1471,6 +1471,7 @@ int stream_set_backend(struct stream *s, struct proxy *be) s->flags |= SF_IGNORE; return 0; } + s->flags |= SF_HTX; } }