details: https://hg.nginx.org/njs/rev/076cdf8a1ced branches: changeset: 1920:076cdf8a1ced user: Dmitry Volyntsev <xei...@nginx.com> date: Tue Aug 02 20:42:04 2022 -0700 description: Stream: fixed "js_fetch_timeout" introduced in b20de7bcee61 (0.7.4).
Previously, the value specified in js_fetch_timeout directive was ignored for stream module. diffstat: nginx/ngx_stream_js_module.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diffs (20 lines): diff -r bb7a3a0017b2 -r 076cdf8a1ced nginx/ngx_stream_js_module.c --- a/nginx/ngx_stream_js_module.c Tue Aug 02 20:40:20 2022 -0700 +++ b/nginx/ngx_stream_js_module.c Tue Aug 02 20:42:04 2022 -0700 @@ -1510,11 +1510,11 @@ ngx_stream_js_resolver_timeout(njs_vm_t static ngx_msec_t ngx_stream_js_fetch_timeout(njs_vm_t *vm, ngx_stream_session_t *s) { - ngx_stream_core_srv_conf_t *cscf; - - cscf = ngx_stream_get_module_srv_conf(s, ngx_stream_js_module); - - return cscf->resolver_timeout; + ngx_stream_js_srv_conf_t *jscf; + + jscf = ngx_stream_get_module_srv_conf(s, ngx_stream_js_module); + + return jscf->timeout; } _______________________________________________ nginx-devel mailing list -- nginx-devel@nginx.org To unsubscribe send an email to nginx-devel-le...@nginx.org