]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: proxy: Don't forget the SF_HTX flag when upgrading TCP=>H1+HTX.
authorOlivier Houchard <cognet@ci0.org>
Fri, 9 Aug 2019 15:50:05 +0000 (17:50 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 9 Aug 2019 15:50:05 +0000 (17:50 +0200)
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.

src/proxy.c

index af4809fe9ed982b18e786133d68e8d9ce2acd367..1abb780e6d47d6dc3f988cbc7eafabec554edf2a 100644 (file)
@@ -1471,6 +1471,7 @@ int stream_set_backend(struct stream *s, struct proxy *be)
                                        s->flags |= SF_IGNORE;
                                        return 0;
                                }
+                               s->flags |= SF_HTX;
                        }
                }