-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket: NotUtf8Exception after upgrade 9.4.35 -> 9.4.36 or newer #6050
Comments
This would be very surprising. (we pass all of the industry websocket test tooling for compliance to the spec) Can you replicate this? |
Our policy forbids capturing user's data (as it may contain private information). Clients use the browser's WebSocket implementation, and there are multiple versions of chrome and firefox (including the latest) in logs with these exceptions, so they are not likely to have a bug in permessage-deflate. BTW, I see no changes in 9.4.36 changing permessage-deflate algorithm, all changes are in buffering. |
native-jetty-websocket-example.zip Here is modified changes: server: client:
Note: |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Opened PR #6056 |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…ft8Exception Issue #6050 - fix bug for permessage deflate buffer aggregation
This is now fixed with PR #6056. |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…Uft8Exception Issue #6050 - Bring PermessageDeflateBufferTest to Jetty 10.
Hi @lachlan-roberts, Getting the same issue in version 10.0.7. Thanks |
@moizm89 if you have a reproduction case, please open a new issue against Jetty 10. |
Jetty version
9.4.38.v20210224
Java version
OpenJDK "15.0.1"
OS type/version
Linux Ubuntu 20.10
Description
After upgrading jetty from 9.4.35.v20201120 to 9.4.36.v20210114 in our prod env we found a significant amount of NotUtf8Exception exceptions during unpacking text WebSocket messages.
The same problem raised when we tried to upgrade to 9.4.37.v20210219 or 9.4.38.v20210224
Also, we found that disabling permessage-deflate ( with factory.getExtensionFactory().unregister("permessage-deflate") ) is fixing this problem.
I suspect a bug created in #5499 (Significant refactoring of PerMessageDeflate), but we have no scenario to reproduce (except for deploying a heavily loaded production server processing lots of user's documents)
Stacktraces usually have different messages NotUtf8Exception (byte xx in state y, incomplete UTF8 sequence). I suspect the exception is caused by random (possibly of multithreading?) damage of buffer data.
One of StackTrace (v 9.4.38.v20210224):
The text was updated successfully, but these errors were encountered: