MINOR: stream: Don't trigger errors on destructive HTTP upgrades
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Mar 2021 14:07:51 +0000 (15:07 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Apr 2021 09:06:39 +0000 (11:06 +0200)
commitf0d7eb2f4f3112a363e35fd040614a2af1179e43
tree935adca90351f5a51270a4cff666f0311d7c610a
parentceab1ed86cbe74701d9c2ed921a2890fb2f90c94
MINOR: stream: Don't trigger errors on destructive HTTP upgrades

When a TCP stream is upgraded to H2 stream, a destructive upgrade is
performed. It means the TCP stream is silently released while a new one is
created. It is of course more complicated but it is what we observe from the
stream point of view.

That was performed by returning an error when the backend was set. It is
neither really elegant nor accurate. So now, instead of returning an error
from stream_set_backend() in case of destructive HTTP upgrades, the TCP
stream processing is aborted and no error is reported. However, the result
is more or less the same.
src/proxy.c
src/stream.c