You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defaultUseHttp2Preface has only true and false options and does not tell which protocols HTTP/2 connection preface should be used for. Currently, the option is applied to both http and h2c. It is not supported to apply either http or h2c.
If we improve defaultUseHttp2Preface and allow users to specify protocols, it would be helpful to troubleshoot various network issues.
Proposal:
Syntax: defaultUseHttp2Preface=string|array
Example
defaultUseHttp2Preface=all
Always use HTTP/2 even for h1c. This option may be used to diagnose network issues.
Generally, it is not recommended.
defaultUseHttp2Preface=http,h2c
Use connection preface for HTTP and H2C
This value can be the sensible default.
defaultUseHttp2Preface=h2c
Connection preface is only used for H2C.
This would be a good option if you have to communicate with legacy servers that do not understand HTTP/2 upgrade requests.
defaultUseHttp2Preface=none
Always use an upgrade request
Backward compatibility
defaultUseHttp2Preface=true
true means http,h2c
defaultUseHttp2Preface=false
false means none
The text was updated successfully, but these errors were encountered:
Hi, I'd like to work on a PR for this, but I'd like to confirm the following point before I start working on this.
Would there be a real or at least a debugging use case of using Upgrade: h2c header over HTTP/1.1 to the endpoints explicitly configured to use h2c?
Asking this because...:
If the endpoint doesn't support Upgrade: h2c over HTTP/1.1, Armeria client will throw SessionProtocolNegotiationException.
The server that supports Upgrade: h2c upgrade will almost always support HTTP/2 prior knowledge.
defaultUseHttp2Preface
has onlytrue
andfalse
options and does not tell which protocols HTTP/2 connection preface should be used for. Currently, the option is applied to bothhttp
andh2c
. It is not supported to apply eitherhttp
orh2c
.If we improve
defaultUseHttp2Preface
and allow users to specify protocols, it would be helpful to troubleshoot various network issues.Proposal:
true
means http,h2cfalse
means noneThe text was updated successfully, but these errors were encountered: