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
Fix #6082 Reduce SSL buffer compaction #6083
Conversation
Only compact when buffer is underflown. Note that BufferUtil will also do a cheap "compact" when flipping empty buffers. Signed-off-by: Greg Wilkins <gregw@webtide.com>
Running our various SSL tests prior to this PR indicated that compaction was frequently done, with 4, 10 or more compactions done on many tests. |
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.
One detail I'm unsure about.
jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java
Outdated
Show resolved
Hide resolved
Only continue if compact creates more space Signed-off-by: Greg Wilkins <gregw@webtide.com>
Fix #6082. Only compact when buffer is underflown.
Note that BufferUtil will also do a cheap "compact" when flipping empty buffers.
Signed-off-by: Greg Wilkins gregw@webtide.com