Re: [PATCH] HTTP/2: copy additional headers in the pushed requests

2018-02-09 Thread Maxim Dounin
Hello! On Thu, Feb 08, 2018 at 08:56:31PM +, Piotr Sikora via nginx-devel wrote: > Hi Ruslan, > > > http header: "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) > AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36" > > http header: "Accept: > text/html,app

[njs] Using hg archive to make dist.

2018-02-09 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/2f266ec441c3 branches: changeset: 435:2f266ec441c3 user: Dmitry Volyntsev date: Fri Feb 09 19:16:18 2018 +0300 description: Using hg archive to make dist. diffstat: Makefile | 14 ++ njs/njscript.h | 2 ++ 2 files changed,

[njs] Reporting njs version by CLI.

2018-02-09 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/624f79e326d5 branches: changeset: 436:624f79e326d5 user: Dmitry Volyntsev date: Fri Feb 09 19:16:18 2018 +0300 description: Reporting njs version by CLI. diffstat: njs/njs.c| 14 -- njs/test/njs_expect_test.exp

[njs] Interactive shell: fixed non-ascii character support.

2018-02-09 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/05605a9f0ad7 branches: changeset: 437:05605a9f0ad7 user: Dmitry Volyntsev date: Fri Feb 09 19:16:19 2018 +0300 description: Interactive shell: fixed non-ascii character support. diffstat: njs/njs.c| 3 +++ njs/test/njs_expe

Permanent structure to accumulate data

2018-02-09 Thread Antonio Nappa
Hello, I am looking for a structure that I can use to store a counter in the module, this structure should not be reset every time there is a new request. I have made tests with the module custom ctx and the module custom srv configuration without success, which means every time there is a new re

Re: Permanent structure to accumulate data

2018-02-09 Thread Sergey Brester
Unfortunately, the question is ambiguous. You can put it into the structure, you initialized `mycf = ngx_pcalloc(cf->pool, size)`, where cf is `ngx_conf_t *cf`, if you want to save it per location. Then you can get it in the handler, using `mycf = ngx_http_get_module_loc_conf(r, ngx_http_your

[njs] Fixed the calculation of the scope indices for variables.

2018-02-09 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/03eebf0e08cc branches: changeset: 438:03eebf0e08cc user: Dmitry Volyntsev date: Fri Feb 09 20:11:17 2018 +0300 description: Fixed the calculation of the scope indices for variables. diffstat: njs/njs_parser.h | 14 +--- njs/njs_var

[njs] Fixed Object's methods for the undefined value.

2018-02-09 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/0a9fbf9e925f branches: changeset: 439:0a9fbf9e925f user: Dmitry Volyntsev date: Fri Feb 09 20:12:41 2018 +0300 description: Fixed Object's methods for the undefined value. diffstat: njs/njs_object.c | 24 njs/t

[njs] Fixed expect tests for systems where echo -e is not available.

2018-02-09 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/f3ed1e9fa8d2 branches: changeset: 440:f3ed1e9fa8d2 user: Dmitry Volyntsev date: Fri Feb 09 20:34:44 2018 +0300 description: Fixed expect tests for systems where echo -e is not available. diffstat: njs/test/njs_expect_test.exp | 6 ++ njs/t