-
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
Fix CachingHttpContentFactory$CachedHttpContent already released buffer #12704
Fix CachingHttpContentFactory$CachedHttpContent already released buffer #12704
Conversation
…the cache, otherwise delegate to the wrapped content Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
...-core/jetty-http/src/main/java/org/eclipse/jetty/http/content/CachingHttpContentFactory.java
Outdated
Show resolved
Hide resolved
@lorban also is there a version of this for 12.0? |
I merged this to #12678 to check it works with the demos. All good there. |
…1.x/12681-cached-content-already-released
Signed-off-by: Ludovic Orban <[email protected]>
...-core/jetty-http/src/main/java/org/eclipse/jetty/http/content/CachingHttpContentFactory.java
Outdated
Show resolved
Hide resolved
I agree that |
Signed-off-by: Ludovic Orban <[email protected]>
Atomically retain the buffer with a check that it still is in the cache, otherwise delegate to the wrapped content.
Fixes #12681