-
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
Improve cleanup of deflater/inflater pools for PerMessageDeflateExtension #8134
Improve cleanup of deflater/inflater pools for PerMessageDeflateExtension #8134
Conversation
…sion Signed-off-by: Lachlan Roberts <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be wise to use a non-stack-filling exception in close()
. Otherwise LGTM.
...mmon/src/main/java/org/eclipse/jetty/websocket/core/internal/PerMessageDeflateExtension.java
Outdated
Show resolved
Hide resolved
...ebsocket/websocket-core-common/src/main/java/org/eclipse/jetty/websocket/core/Extension.java
Show resolved
Hide resolved
...socket-core-common/src/main/java/org/eclipse/jetty/websocket/core/internal/FrameFlusher.java
Show resolved
Hide resolved
...mmon/src/main/java/org/eclipse/jetty/websocket/core/internal/PerMessageDeflateExtension.java
Outdated
Show resolved
Hide resolved
...core-common/src/main/java/org/eclipse/jetty/websocket/core/internal/TransformingFlusher.java
Show resolved
Hide resolved
...core-common/src/main/java/org/eclipse/jetty/websocket/core/internal/TransformingFlusher.java
Show resolved
Hide resolved
Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
...cket-core-common/src/main/java/org/eclipse/jetty/websocket/core/internal/ExtensionStack.java
Show resolved
Hide resolved
...ebsocket/websocket-core-common/src/main/java/org/eclipse/jetty/websocket/core/Extension.java
Outdated
Show resolved
Hide resolved
Do we want this in Jetty 10.0.10 release? |
@joakime yes this should be in the |
Signed-off-by: Lachlan Roberts <[email protected]>
...ebsocket/websocket-core-common/src/main/java/org/eclipse/jetty/websocket/core/Extension.java
Outdated
Show resolved
Hide resolved
@@ -44,7 +44,6 @@ public class FrameFlusher extends IteratingCallback | |||
{ | |||
public static final Frame FLUSH_FRAME = new Frame(OpCode.BINARY); | |||
private static final Logger LOG = LoggerFactory.getLogger(FrameFlusher.class); | |||
private static final Throwable CLOSED_CHANNEL = new ClosedChannelException(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lachlan-roberts as discussed on chat.... I think we can keep this static sentinael and just use the constructor that avoids suppressed exceptions and a stacktrace.
CompressionPool
via JMX.PermessageDeflateExtension
should release deflaters.FrameFlusher
.