bytedance/g3

Ability to disable HTTP2 connections?

Closed this issue · 3 comments

I may have missed the setting somewhere - but is it possible to disable HTTP2 (and 3) proxing via configuration? I would like to force all client/server connections to use HTTP1. If not is there a specific location you recommend we make the change in code?

Thanks!

It's not possible yet.

To disable h2, you need to:

  • at TLS layer, remove h2 from ALPN and ALPS(boringssl) extension
  • at H2 layer, reset stream with error code HTTP_1_1_REQUIRED

H3 is still not supported yet.

Thanks @zh-jq-b we will investigate! We are needing to investigate/debug different streams/substreams which are easier to trace in HTTP1. I think this is a nice to have feature but I wouldn’t think it a high priority for most users yet.

with #207 now you can set h2_inspect_policy: block in auditor config to block h2 traffic