MINOR: stream/mux: implement websocket stream flag
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 18 Oct 2021 12:45:49 +0000 (14:45 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Nov 2021 15:24:48 +0000 (16:24 +0100)
commit90ac605ef35d60323cfe4bc26cd56c2f97dc2277
treeb425382b3fe62692371fc3fd2be5daba2ff2d4a2
parent0df043608f53cdb367586714e3ba0a7a3e2b0e89
MINOR: stream/mux: implement websocket stream flag

Define a new stream flag SF_WEBSOCKET and a new cs flag CS_FL_WEBSOCKET.
The conn-stream flag is first set by h1/h2 muxes if the request is a
valid websocket upgrade. The flag is then converted to SF_WEBSOCKET on
the stream creation.

This will be useful to properly manage websocket streams in
connect_server().
include/haproxy/connection-t.h
include/haproxy/stream-t.h
src/mux_h1.c
src/mux_h2.c
src/stream.c