Welcome! Log In Create A New Profile

Advanced

[njs] Stream: linking ngx object to the module missed in d7f6e719af98.

Dmitry Volyntsev
November 17, 2020 08:24AM
details: https://hg.nginx.org/njs/rev/24717ec294b8
branches:
changeset: 1566:24717ec294b8
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Tue Nov 17 13:16:47 2020 +0000
description:
Stream: linking ngx object to the module missed in d7f6e719af98.

diffstat:

nginx/ngx_stream_js_module.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r d7f6e719af98 -r 24717ec294b8 nginx/ngx_stream_js_module.c
--- a/nginx/ngx_stream_js_module.c Fri Oct 02 18:38:12 2020 +0000
+++ b/nginx/ngx_stream_js_module.c Tue Nov 17 13:16:47 2020 +0000
@@ -1457,6 +1457,12 @@ ngx_stream_js_init_main_conf(ngx_conf_t
}

jmcf->proto = proto;
+
+ rc = ngx_js_core_init(jmcf->vm, cf->log);
+ if (njs_slow_path(rc != NJS_OK)) {
+ return NGX_CONF_ERROR;
+ }
+
end = start + size;

rc = njs_vm_compile(jmcf->vm, &start, end);
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Stream: linking ngx object to the module missed in d7f6e719af98.

Dmitry Volyntsev 55 November 17, 2020 08:24AM



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

Online Users

Guests: 71
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