[njs] Stream: fixed "js_fetch_timeout" introduced in b20de7bcee61 (0.7.4).
Dmitry Volyntsev
xeioex at nginx.com
Wed Aug 3 05:16:02 UTC 2022
details: https://hg.nginx.org/njs/rev/076cdf8a1ced
branches:
changeset: 1920:076cdf8a1ced
user: Dmitry Volyntsev <xeioex at 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;
}
More information about the nginx-devel
mailing list