[njs] Maximum call stack size is limited by 16M.

2016-12-01 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/6d0d4a92fa02 branches: changeset: 269:6d0d4a92fa02 user: Igor Sysoev date: Thu Dec 01 18:56:35 2016 +0300 description: Maximum call stack size is limited by 16M. diffstat: njs/njs_function.c | 20 +++- njs/njs_function.h

[njs] Using short string values where they are enough.

2016-12-01 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/f8f20b27724e branches: changeset: 270:f8f20b27724e user: Igor Sysoev date: Thu Dec 01 19:45:19 2016 +0300 description: Using short string values where they are enough. diffstat: njs/njs_date.c | 28 ++-- njs/njs_objec

Re: Why not remove UNIX domain socket before bind

2016-12-01 Thread Maxim Dounin
Hello! On Thu, Dec 01, 2016 at 01:20:43AM -0800, Alexey Ivanov wrote: > Why not just use `flock(2)` there? It won't work if the socket is used by a different server. -- Maxim Dounin http://nginx.org/ ___ nginx-devel mailing list nginx-devel@nginx.or

[nginx] Events: improved error event handling for UDP sockets.

2016-12-01 Thread Dmitry Volyntsev
details: http://hg.nginx.org/nginx/rev/75dbab4ea930 branches: changeset: 6806:75dbab4ea930 user: Dmitry Volyntsev date: Mon Nov 21 16:03:42 2016 +0300 description: Events: improved error event handling for UDP sockets. Normally, the epoll module calls the read and write handlers dep

Re: Why not remove UNIX domain socket before bind

2016-12-01 Thread Alexey Ivanov
Why not just use `flock(2)` there? > On Nov 30, 2016, at 6:57 AM, Maxim Dounin wrote: > > Hello! > > On Tue, Nov 29, 2016 at 01:30:25PM -0800, Shuxin Yang wrote: > >> Is there any reason not to delete UNIX domain socket before bind? > > To name a few, deleting a socket implies that: > >

Re: Why not remove UNIX domain socket before bind

2016-12-01 Thread Datong Sun via nginx-devel
Hi Maxim, Thanks for the explanation. Regarding a), what about checking and making sure the type of file is actually a socket before removing? Obviously it does not prevent NGINX from deleting sockets created by other processes but it's a much smaller issue compared to deleting arbitrary file. Th