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
Websocket compression should be negotiated when both HTTP11 and H2C protocols are enabled, in the same way as when only HTTP11 protocol is enabled, and both the server and client support it.
Both the request and response contain a sec-websocket-extensions header indicating that compression is in use. (ie. permessage-deflate)
Actual Behavior
Websocket compression is not negotiated when HTTP11 and H2C are both enabled. The HttpClient correctly sends the extension, but the HttpServer does not apply it. The response does not contain the extensions header, and debug logs show that the compression handler was removed.
Using only HTTP11 or using H2 instead of H2C works as expected.
JVM version (java -version):
openjdk 17.0.6 2023-01-17 LTS
OpenJDK Runtime Environment Zulu17.40+19-CA (build 17.0.6+10-LTS)
OpenJDK 64-Bit Server VM Zulu17.40+19-CA (build 17.0.6+10-LTS, mixed mode, sharing)
OS and version (eg. uname -a):
XXX.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered:
Expected Behavior
Websocket compression should be negotiated when both HTTP11 and H2C protocols are enabled, in the same way as when only HTTP11 protocol is enabled, and both the server and client support it.
Both the request and response contain a
sec-websocket-extensions
header indicating that compression is in use. (ie.permessage-deflate
)Actual Behavior
Websocket compression is not negotiated when HTTP11 and H2C are both enabled. The HttpClient correctly sends the extension, but the HttpServer does not apply it. The response does not contain the extensions header, and debug logs show that the compression handler was removed.
Using only HTTP11 or using H2 instead of H2C works as expected.
Steps to Reproduce
Your Environment
reactor-netty 1.1.12
java -version
):openjdk 17.0.6 2023-01-17 LTS
OpenJDK Runtime Environment Zulu17.40+19-CA (build 17.0.6+10-LTS)
OpenJDK 64-Bit Server VM Zulu17.40+19-CA (build 17.0.6+10-LTS, mixed mode, sharing)
uname -a
):XXX.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: