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

Make Buffer Reuse Possible #79

Open
jmccl opened this issue May 27, 2024 · 0 comments
Open

Make Buffer Reuse Possible #79

jmccl opened this issue May 27, 2024 · 0 comments

Comments

@jmccl
Copy link
Contributor

jmccl commented May 27, 2024

I would like to reuse buffers as described here.

https://nginx.org/en/docs/dev/development_guide.html#http_body_buffers_reuse

This is currently (I think) not possible as the raw ngx_pool_t is private to ngx::core::Pool, so that ngx_chain_get_free_buf and ngx_chain_update_chains can’t be called.

Possible solutions are:

  • Make the ngx_pool_t public, which I assume you don't want to do.
  • Implement the chain creation / update functions on Pool.
  • Something else?
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

No branches or pull requests

1 participant