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
This could be expected behaviour, but wanted to confirm.
Maybe one idea could be to have a seperate limit for final message size and frame size limits, or otherwise make it clearer that the application may need to confirm the payload size when using compression.
Other relevant libraries versions (eg. netty, ...): 4.1.107 final
JVM version (java -version): openjdk version "17.0.6" 2023-01-17 LTS
OS and version (eg. uname -a): Darwin Joebys-Laptop.local 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:43 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6000 arm64
Thanks for your help!
The text was updated successfully, but these errors were encountered:
@joebyneilreactor.netty.http.websocket.WebsocketSpec#maxFramePayloadLength specifies the limit for the incoming packet, regardless whether it is compressed or not. May be we need to improve the javadoc description.
Expected Behavior
When using compression, payloads handled by the server should be rejected if the uncompressed frame size is greater than the maxFramePayloadLength.
Unsure if this is an expected behaviour but thought I would raise for discussion.
Actual Behavior
Frames passed onto handler are larger than the configured maxFramePayloadLength.
This case also occurs regardless of value passed to
WebSocketFrameAggregator(maxContentLength)
viaaggregateFrames(maxContentLength)
.Steps to Reproduce
This test is modified version of existing tests in
WebsocketTest.java
Possible Solution
This could be expected behaviour, but wanted to confirm.
Maybe one idea could be to have a seperate limit for final message size and frame size limits, or otherwise make it clearer that the application may need to confirm the payload size when using compression.
Your Environment
Tested within the reactor-netty repo on commit: ab6c07aa2b5d6ef522f741bd09cadbbfc04cbb50
netty
, ...): 4.1.107 finaljava -version
): openjdk version "17.0.6" 2023-01-17 LTSuname -a
): Darwin Joebys-Laptop.local 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:43 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6000 arm64Thanks for your help!
The text was updated successfully, but these errors were encountered: