-
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
Remove buffer from pool on write failure #11951
Remove buffer from pool on write failure #11951
Conversation
…tty-12.0.x/ByteBufferPoolRemove
jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/HttpOutput.java
Show resolved
Hide resolved
@lorban I can make the changes you suggest.... but what do you think of the general approach? Workable? |
@gregw I commented this approach here: #11876 (comment) In short: I think this is the best way to go for 12.0, and we should move most/all |
updates from review
jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ErrorHandler.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/RetainableByteBuffer.java
Outdated
Show resolved
Hide resolved
Updates from review. Remove the API
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.
Two nits, otherwise LGTM
jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/HttpOutput.java
Show resolved
Hide resolved
jetty-ee9/jetty-ee9-nested/src/main/java/org/eclipse/jetty/ee9/nested/HttpOutput.java
Show resolved
Hide resolved
I added the assert on |
From https://jenkins.webtide.net/blue/organizations/jenkins/jetty.project/detail/PR-11951/13/pipeline
Not going to merge this one myself. |
@joakime OK looking... stand by ... |
@joakime I'm 99% sure that was a flake. rebuilding to check and then will merge. |
Fixes #11854 by removing buffers from the pool when failed during a write.
This is an alternative solution to #11876