Re: [nginx] support http2 per server

2017-06-07 Thread 洪志道
Sorry for the typo. diff -r 5e05118678af src/http/modules/ngx_http_ssl_module.c --- a/src/http/modules/ngx_http_ssl_module.c Mon May 29 23:33:38 2017 +0300 +++ b/src/http/modules/ngx_http_ssl_module.c Wed Jun 07 12:17:34 2017 -0400 @@ -234,6 +234,13 @@ offsetof(ngx_http_ssl_srv_conf_t, stap

[nginx] support http2 per server

2017-06-07 Thread 洪志道
Hi! Now, http2 is enabled globally for 'listen' directive with ip:port. It seems it's possible to enable by server with sni, alpn, npn. Take a look, please. diff -r 5e05118678af src/http/modules/ngx_http_ssl_module.c --- a/src/http/modules/ngx_http_ssl_module.c Mon May 29 23:33:38 2017 +0300 +++ b

Re: [PATCH 2 of 3] HTTP/2: added support for trailers in HTTP responses

2017-06-07 Thread Valentin V. Bartenev
On Friday 02 June 2017 20:33:46 Piotr Sikora via nginx-devel wrote: > # HG changeset patch > # User Piotr Sikora > # Date 1493191954 25200 > # Wed Apr 26 00:32:34 2017 -0700 > # Node ID 8d74ff6c2015180f5c1f399f492214d7d0a52b3f > # Parent 41c09a2fd90410e25ad8515793bd48028001c954 > HTTP/2: add

Re: PSK Support

2017-06-07 Thread Maxim Dounin
Hello! On Wed, Jun 07, 2017 at 05:02:52AM +, Karstens, Nate wrote: > Maxim, > > The biggest downside that I can see to the dummy certificate > approach is documentation. Using a dummy certificate wasn't > immediately obvious to me, though perhaps my familiarity with > OpenSSL's "nocert" o

Re: nginx development guide

2017-06-07 Thread Vladimir Homutov
07.06.2017 17:00, 胡聪 (hucc) пишет: > Hello, > > There are two possible errors in > http://nginx.org/en/docs/dev/development_guide.html#http_load_balancing > >> init(r, us) — initializes per-request ngx_http_upstream_peer_t.peer (not to >> be confused with the >> ngx_http_upstream_srv_conf_t.peer

[nginx] Userid: ngx_http_get_indexed_variable() error handling.

2017-06-07 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/e6f399a176e7 branches: changeset: 7028:e6f399a176e7 user: Sergey Kandaurov date: Wed Jun 07 18:46:36 2017 +0300 description: Userid: ngx_http_get_indexed_variable() error handling. When evaluating a mapped $reset_uid variable in the userid filt

[nginx] Fixed segfault in try_files with nested location.

2017-06-07 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/6d0e0d982ec0 branches: changeset: 7027:6d0e0d982ec0 user: Sergey Kandaurov date: Wed Jun 07 18:46:35 2017 +0300 description: Fixed segfault in try_files with nested location. If memory allocation of a new r->uri.data storage failed, reset its l

[nginx] SSI: return NGX_ERROR when timefmt memory allocation failed.

2017-06-07 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/e699e6b6d76c branches: changeset: 7026:e699e6b6d76c user: Sergey Kandaurov date: Wed Jun 07 15:21:42 2017 +0300 description: SSI: return NGX_ERROR when timefmt memory allocation failed. Previously, when using NGX_HTTP_SSI_ERROR, error was ignor

[njs] Object.defineProperty() method.

2017-06-07 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/a0bc58cc65d5 branches: changeset: 356:a0bc58cc65d5 user: Dmitry Volyntsev date: Wed Jun 07 17:57:40 2017 +0300 description: Object.defineProperty() method. diffstat: njs/njs_object.c | 112 ++

[njs] More scientific notation tests.

2017-06-07 Thread Andrey Zelenkov
details: http://hg.nginx.org/njs/rev/edf64bf9677c branches: changeset: 355:edf64bf9677c user: Andrey Zelenkov date: Wed Jun 07 16:36:17 2017 +0300 description: More scientific notation tests. diffstat: njs/test/njs_unit_test.c | 6 ++ 1 files changed, 6 insertions(+), 0 delet

[njs] Fixed zero basis handling for scientific notation.

2017-06-07 Thread Andrey Zelenkov
details: http://hg.nginx.org/njs/rev/2cba0bd90189 branches: changeset: 354:2cba0bd90189 user: Andrey Zelenkov date: Wed Jun 07 16:36:13 2017 +0300 description: Fixed zero basis handling for scientific notation. diffstat: njs/njs_number.c | 6 -- njs/test/njs_unit_test

Re: nginx development guide

2017-06-07 Thread 胡聪 (hucc)
Hello, There are two possible errors in http://nginx.org/en/docs/dev/development_guide.html#http_load_balancing >init(r, us) — initializes per-request ngx_http_upstream_peer_t.peer (not to be >confused with the >ngx_http_upstream_srv_conf_t.peer described above which is per-upstream) >structure

[njs] Fixed building by GCC 4.2.

2017-06-07 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/7196ac334d64 branches: changeset: 353:7196ac334d64 user: Dmitry Volyntsev date: Wed Jun 07 15:45:01 2017 +0300 description: Fixed building by GCC 4.2. diffstat: njs/njs_object.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (1

[njs] Object.keys() method.

2017-06-07 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/fb703c8f4292 branches: changeset: 352:fb703c8f4292 user: Dmitry Volyntsev date: Wed Jun 07 14:12:23 2017 +0300 description: Object.keys() method. diffstat: njs/njs_object.c | 101 +++ njs/njs

Implement support for serving growing files

2017-06-07 Thread Tommy Lindgren
Hi, I want nginx to serve growing files, i.e. if mtime was changed recently the response transfer-encoding should be chunked and when nginx hits EOF it waits a bit to see if more data is written to the file. Any new data is transparently written to the client. When file hasn't been updated for X s