cds: Add "auto_http2" option. (#399)
Currently clusters can not open both HTTP1.1 and HTTP2 upstream connections at the same time. When the new cluster option "auto_http2" is set to "true", the cluster must open an HTTP2 upstream connection if the downstream connection is HTTP2, and an HTTP1.1 upstream connection if the downstream connection is HTTP1.1. This option is to have no effect if there is no corresponding downstream connection. This functionality removes the need to operate multiple clusters and routing rules for them when the backends accept both HTTP1.1 and HTTP2 connections, and when the choice of the HTTP protocol is significant, as with gRPC. Signed-off-by: Jarno Rajahalme <jarno@covalent.io>pull/408/head
parent
daff1e1514
commit
a4b80d6c43
1 changed files with 24 additions and 18 deletions
Loading…
Reference in new issue