]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: proxy: Don't use cs_destroy() when freeing the conn_stream.
authorOlivier Houchard <cognet@ci0.org>
Fri, 9 Aug 2019 16:01:15 +0000 (18:01 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 9 Aug 2019 16:01:15 +0000 (18:01 +0200)
commit59dd06d6599f0a6d9131343272efa398de257bf0
treead2cfa6e8621fb34394dd6c5d81e00fa3ab2f9ac
parent71b20c26bef68e2c7d52f1cfcdc7321d12c58e9e
BUG/MEDIUM: proxy: Don't use cs_destroy() when freeing the conn_stream.

When we upgrade the mux from TCP to H2/HTX, don't use cs_destroy() to free
the conn_stream, use cs_free() instead. Using cs_destroy() would call the
mux detach method, and at that point of time the mux would be the H2 mux,
which knows nothing about that conn_stream, so bad things would happen.
This should eventually make upgrade from TCP to H2/HTX work, and fix
the github issue #196.

This should be backported to 2.0.
src/proxy.c