Welcome! Log In Create A New Profile

Advanced

[njs] Stream: fixed "js_fetch_timeout" introduced in b20de7bcee61 (0.7.4).

Dmitry Volyntsev
August 03, 2022 01:18AM
details: https://hg.nginx.org/njs/rev/076cdf8a1ced
branches:
changeset: 1920:076cdf8a1ced
user: Dmitry Volyntsev <xeioex@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-leave@nginx.org
Subject Author Views Posted

[njs] Stream: fixed "js_fetch_timeout" introduced in b20de7bcee61 (0.7.4).

Dmitry Volyntsev 240 August 03, 2022 01:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready