MINOR: connection: implement function to update ALPN
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 18 Oct 2021 12:32:36 +0000 (14:32 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Nov 2021 15:24:48 +0000 (16:24 +0100)
commit2454bda1405da260021547d1c9edd676b4219a22
tree09b4d9a501238052e966fa6f369579e0ed10b7ba
parent90ac605ef35d60323cfe4bc26cd56c2f97dc2277
MINOR: connection: implement function to update ALPN

Implement a new function to update the ALPN on an existing connection.
on an existing connection. The ALPN from the ssl context can be checked
to update the ALPN only if it is a subset of the context value.

This method will be useful to change a connection ALPN for websocket,
must notably if the server does not support h2 websocket through the
rfc8441 Extended Connect.
include/haproxy/connection.h
src/connection.c