Re: aio/unix: Use signal.sival which is standard

2019-01-17 Thread Sepherosa Ziehau
Hi, > diff --git a/src/os/unix/ngx_freebsd_config.h > b/src/os/unix/ngx_freebsd_config.h > --- a/src/os/unix/ngx_freebsd_config.h > +++ b/src/os/unix/ngx_freebsd_config.h > @@ -91,6 +91,10 @@ > #if (NGX_HAVE_FILE_AIO) > #include > typedef struct aiocb ngx_aiocb_t; > + > +#if (__FreeBSD_versi

Re: post handler json data

2019-01-17 Thread Hung Nguyen
Hello, With this type of purpose I personally think you should take a look at njs instead of writing nginx module. Json can be done easier with JS -- Hưng > On Jan 17, 2019, at 20:57, Manickam wrote: > > Hi, > > I am new to Nginx development and looking for simple module which just dumps >

[PATCH] Be consistent with keepalive during graceful shutdown

2019-01-17 Thread Yuchen Wu via nginx-devel
# HG changeset patch # User Yuchen Wu # Date 1547749157 28800 # Thu Jan 17 10:19:17 2019 -0800 # Node ID 8a6290c41b33c664d52d7a472400381e71ecf171 # Parent 8acaa1161783347106dcaea574837e441e13b540 Be consistent with keepalive during graceful shutdown Before, when nginx sends the Connection:

Re: aio/unix: Use signal.sival which is standard

2019-01-17 Thread Sergey Kandaurov
> On 17 Jan 2019, at 16:22, Maxim Dounin wrote: > > Hello! > > On Thu, Jan 17, 2019 at 01:29:56PM +0300, Sergey Kandaurov wrote: > >> >> >>> On 17 Jan 2019, at 08:43, Sepherosa Ziehau wrote: >>> >>> What's the preferred way to handle this? I am not sure whether you >>> guys allow __FreeB

[njs] Setting exit index for try_return instruction is simplified.

2019-01-17 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/3b1239c2ee12 branches: changeset: 732:3b1239c2ee12 user: Dmitry Volyntsev date: Thu Jan 17 17:01:22 2019 +0300 description: Setting exit index for try_return instruction is simplified. diffstat: njs/njs_generator.c | 57 --

[njs] Fixed comments "try" instructions.

2019-01-17 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/2e9bdb42b3e6 branches: changeset: 731:2e9bdb42b3e6 user: Dmitry Volyntsev date: Thu Jan 17 16:12:46 2019 +0300 description: Fixed comments "try" instructions. diffstat: njs/njs_vm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

[njs] Making generator block for block statements.

2019-01-17 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/0f919fb820e8 branches: changeset: 729:0f919fb820e8 user: Dmitry Volyntsev date: Wed Jan 16 18:58:23 2019 +0300 description: Making generator block for block statements. diffstat: njs/njs_generator.c | 28 +++ njs/njs_parser.c

[njs] Fixed try_break instruction.

2019-01-17 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/9973704e2e36 branches: changeset: 730:9973704e2e36 user: Dmitry Volyntsev date: Thu Jan 17 16:11:52 2019 +0300 description: Fixed try_break instruction. diffstat: njs/njs_vm.c | 5 - njs/test/njs_unit_test.c | 3 +++ 2 files

post handler json data

2019-01-17 Thread Manickam
Hi, I am new to Nginx development and looking for simple module which just dumps the input (json format) as is. Looked at different examples available on net and none of them deals with handling post data. May be i am missing something and any help is appreciated. Thanks in advance __

Re: [PATCH] Apply cache locking behaviour to stale cache entries.

2019-01-17 Thread Maxim Dounin
Hello! On Wed, Jan 16, 2019 at 10:20:59AM +, Elliot Thomas wrote: > With regards to the cache locking on stale patch, are there any further > improvements I should make? Sorry, I'm a bit busy with other tasks now. Hopefully I'll be able to look again at the patch later this month. -- Max

Re: aio/unix: Use signal.sival which is standard

2019-01-17 Thread Maxim Dounin
Hello! On Thu, Jan 17, 2019 at 01:29:56PM +0300, Sergey Kandaurov wrote: > > > > On 17 Jan 2019, at 08:43, Sepherosa Ziehau wrote: > > > > What's the preferred way to handle this? I am not sure whether you > > guys allow __FreeBSD_version testing etc. > > > > This could be solved with auto

[nginx] Prevented scheduling events on a shared connection.

2019-01-17 Thread Roman Arutyunyan
details: https://hg.nginx.org/nginx/rev/6d4bc025c5a7 branches: changeset: 7440:6d4bc025c5a7 user: Roman Arutyunyan date: Mon Jan 14 20:36:23 2019 +0300 description: Prevented scheduling events on a shared connection. A shared connection does not own its file descriptor, which means

[nginx] Stream: do not split datagrams when limiting proxy rate.

2019-01-17 Thread Roman Arutyunyan
details: https://hg.nginx.org/nginx/rev/8acaa1161783 branches: changeset: 7441:8acaa1161783 user: Roman Arutyunyan date: Thu Dec 27 19:37:34 2018 +0300 description: Stream: do not split datagrams when limiting proxy rate. Previously, when using proxy_upload_rate and proxy_download_r

[nginx] Version bump.

2019-01-17 Thread Vladimir Homutov
details: https://hg.nginx.org/nginx/rev/134343f2a877 branches: changeset: 7438:134343f2a877 user: Vladimir Homutov date: Thu Jan 17 14:31:01 2019 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 line

[nginx] Added the ngx_http_test_required_predicates() function.

2019-01-17 Thread Vladimir Homutov
details: https://hg.nginx.org/nginx/rev/5efc23d83bc2 branches: changeset: 7439:5efc23d83bc2 user: Vladimir Homutov date: Thu Jan 17 14:31:04 2019 +0300 description: Added the ngx_http_test_required_predicates() function. In contrast to ngx_http_test_predicates(), it requires all val

Re: aio/unix: Use signal.sival which is standard

2019-01-17 Thread Sergey Kandaurov
> On 17 Jan 2019, at 08:43, Sepherosa Ziehau wrote: > > What's the preferred way to handle this? I am not sure whether you > guys allow __FreeBSD_version testing etc. > This could be solved with autotests. # HG changeset patch # User Sergey Kandaurov # Date 1547720890 0 # Thu Jan 17