Skip to content
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

Refactor and improvements to HttpContent Factories #8767

Merged

Conversation

lachlan-roberts
Copy link
Contributor

  • flatten cache in HttpCachingHttpContentFactory
  • remove old CachedContentFactory
  • HttpContent uses RetainableByteBuffer
  • use buffer pool in CachingHttpContentFactory
  • add configuration to reduce/prevent file system accesses for cached HttpContent
  • add separate HttpContent factory for file mapping

Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
… multiple factories in a single context

Signed-off-by: Lachlan Roberts <[email protected]>
@gregw gregw dismissed their stale review November 8, 2022 10:51

switching to a non blocking review. I just have some questions now.

Signed-off-by: Lachlan Roberts <[email protected]>
revert to using computeIfAbsent on CachingHttpContentFactory
make direct buffers configurable on CachingHttpContentFactory

Signed-off-by: Lachlan Roberts <[email protected]>
@gregw
Copy link
Contributor

gregw commented Nov 15, 2022

@lachlan-roberts @sbordet @lorban can we all work together to land this one. It has been outstanding too long.

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK for t his to be merged as an interim step.

@lachlan-roberts lachlan-roberts merged commit d72e397 into jetty-12.0.x Nov 16, 2022
@lachlan-roberts lachlan-roberts deleted the jetty-12.0.x-HttpContent-Caching-Refactor branch November 16, 2022 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants