-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a check (via the `EnforceHTTP2` handler) to ensure that the HTTP connection is established via HTTP/2 This commit basically reverts 43d9d58. The main reason for requiring HTTP/2 is the full-duplex property of HTTP/2 connections. Future APIs (stream encryption) will require a full-duplex client-server connection - i.e. the client keeps sending a request body while the server keeps sending a response body at the same time. Additionally, HTTP/2 can use a single TCP connection for multiple HTTP connection (multiplexing), and therefore, is faster / requires less resources. On the other side, some HTTP proxies (e.g. nginx) don't support HTTP/2 connection for backend service. See: https://trac.nginx.org/nginx/ticket/923 However, in this case a workaround using grpc exists. Overall, the benefits of HTTP/2 outweigh the disadvantage. Therefore, we will require HTTP/2 from now on.
- Loading branch information
Andreas Auernhammer
committed
May 4, 2020
1 parent
3517713
commit 6e7a319
Showing
2 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters