[ANN] Test::Nginx 0.30 is released

2022-05-31 Thread Jiahao Wang via nginx
Hi there, I am happy to announce the new 0.30 release of Test::Nginx: https://openresty.org/en/ann-test-nginx-030.html This version has many new features and fixes several bugs since 0.29, refer to the above link for details. This Perl module provides a test scaffold for automated testing in Ng

Re: Buffer reuse like gzip filter module, with pre-configured number of buffers

2022-05-31 Thread Maxim Dounin
Hello! On Tue, May 31, 2022 at 12:57:46PM -0400, hanzhai wrote: [...] > rc = ngx_http_next_body_filter(r, ch); // rc got NGX_OK > if (rc != NGX_OK && rc != NGX_AGAIN) { > goto failed; > } > > ngx_chain_update_chains(r->pool, &ctx->free, &ctx->busy, &ch, > (ngx_buf_ta

Re: Pass Lua variable in proxy pass directive

2022-05-31 Thread Francis Daly
On Tue, May 31, 2022 at 01:53:20AM -0400, husaindalroti wrote: Hi there, > Is it possible to pass lua variable in proxy pass directive which we define > using set_by_lua_file directive ? Untested, but the documentation suggests that it should work. > set_by_lua_file $ref test.lua; > proxy_pass

Re: nginx -s reload does not work with proxy directives

2022-05-31 Thread evald ibrahimi
Thanks for the explanation. On Tue, 31 May 2022, 18:38 Maxim Dounin, wrote: > Hello! > > On Tue, May 31, 2022 at 06:01:01PM +0200, evald ibrahimi wrote: > > > Just encounter this issue on the latest version of nginx 1.22.0. > > Basically i added the "proxy_read_timeout 600s;" in a server directi

Buffer reuse like gzip filter module, with pre-configured number of buffers

2022-05-31 Thread hanzhai
Hi, I am writing my own filter module based on the gzip filter module. My filter module would first insert a long text (200 to 1024 KB based on the situation) at the beginning of the original response and then do some other manipulations to the original response. The pre-configured number of buffe

Re: nginx -s reload does not work with proxy directives

2022-05-31 Thread Maxim Dounin
Hello! On Tue, May 31, 2022 at 06:01:01PM +0200, evald ibrahimi wrote: > Just encounter this issue on the latest version of nginx 1.22.0. > Basically i added the "proxy_read_timeout 600s;" in a server directive and > run "nginx -s reload". > I was getting still "upstream timed out (110: Connectio

nginx -s reload does not work with proxy directives

2022-05-31 Thread evald ibrahimi
hello, Just encounter this issue on the latest version of nginx 1.22.0. Basically i added the "proxy_read_timeout 600s;" in a server directive and run "nginx -s reload". I was getting still "upstream timed out (110: Connection timed out) while reading response header from upstream, client: " after