From: Dmitry Volyntsev Date: Wed, 3 Aug 2022 03:42:04 +0000 (-0700) Subject: Stream: fixed "js_fetch_timeout" introduced in b20de7bcee61 (0.7.4). X-Git-Tag: 0.7.7~20 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=89e74fe775f25033389c28017bf3be5fec263ac9;p=njs.git 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. --- diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c index ae7726fa..6c5ba099 100644 --- a/nginx/ngx_stream_js_module.c +++ b/nginx/ngx_stream_js_module.c @@ -1510,11 +1510,11 @@ ngx_stream_js_resolver_timeout(njs_vm_t *vm, ngx_stream_session_t *s) 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; + ngx_stream_js_srv_conf_t *jscf; - cscf = ngx_stream_get_module_srv_conf(s, ngx_stream_js_module); + jscf = ngx_stream_get_module_srv_conf(s, ngx_stream_js_module); - return cscf->resolver_timeout; + return jscf->timeout; }