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
I have configured Netty Reactor with Spring Boot and HTTP2. All is working fine, thanks for these awesome frameworks. However, it's impossible to use HTTP2 with HTTP1 (TLS), because in this case, only HTTP1 is always used and prior to HTTP2.
It is possible to use HTTP2 and HTTP1 together, and fallback to HTTP1 only if client doesn't support it ?
My objective is to fallback to HTTP1 if browser doesn't support HTTP2.
I have configured ReactiveWebServerFactory, and added HTTP1 in protocols list.
All is working fine, but HTTP1 is always used, and HTTP2 never enabled, even with curl flag --http2. Logs (curl / server) are below : http1.1 + http2 - client.log http1.1 + http2 - server.log
Steps to reproduce
Simply create an HTTP Server with Spring boot and customize ReactiveWebServerFactory :
Expected behavior
I have configured Netty Reactor with Spring Boot and HTTP2. All is working fine, thanks for these awesome frameworks. However, it's impossible to use HTTP2 with HTTP1 (TLS), because in this case, only HTTP1 is always used and prior to HTTP2.
It is possible to use HTTP2 and HTTP1 together, and fallback to HTTP1 only if client doesn't support it ?
Thanks you for your help.
Actual behavior
HTTP 2
I have configured ReactiveWebServerFactory, and when i enabled only HTTP2, all is working fine, logs (curl / server) are below :
http2 only - server.log
http2 only - client.log
HTTP 2 + HTTP 1
My objective is to fallback to HTTP1 if browser doesn't support HTTP2.
I have configured ReactiveWebServerFactory, and added HTTP1 in protocols list.
All is working fine, but HTTP1 is always used, and HTTP2 never enabled, even with curl flag --http2. Logs (curl / server) are below :
http1.1 + http2 - client.log
http1.1 + http2 - server.log
Steps to reproduce
Simply create an HTTP Server with Spring boot and customize ReactiveWebServerFactory :
Reactor Netty version
0.8.1.RELEASE
JVM version (e.g.
java -version
)java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
OS version (e.g.
uname -a
)Darwin MBP-de-Vincent 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: