-
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: java.lang.IllegalStateException: already released RetainableByteBuffer #7086
Comments
There is not enough information to tell why this is happening. @leonchen83 are you using the Jetty API or the Javax WebSocket API? and what type of message handler are you using for this websocket connection? |
we extend spring
|
…sed. Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
I think I've figured out why this is happening. The try
{
...
callback.succeeded();
coreSession.demand(1);
}
catch(Throwable t)
{
callback.failed(t);
} So if demand throws because the session is closed then it is both succeeding and failing the callback. You can trigger this by sending an error close frame from the |
Signed-off-by: Lachlan Roberts <[email protected]>
…ageSinks Issue #7086 - fix issues when calling websocket demand
Jetty version(s)
10.0.7
Java version/vendor
(use: java -version)
openjdk 11
OS type/version
Linux version 2.6.32-642.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) #1 SMP Tue May 10 17:27:01 UTC 2016
Description
occur exception on our prod env
Do not report security issues here! See Jetty Security Reports.
How to reproduce?
it`s hard to reproduce
The text was updated successfully, but these errors were encountered: