nginxinc / ngx-rust

Rust binding for NGINX
Apache License 2.0
713 stars 59 forks source link

Make Buffer Reuse Possible #79

Open jmccl opened 1 month ago

jmccl commented 1 month ago

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: