[PATCH 1/2] Added NJS_MALLOC().

2023-01-30 Thread Alejandro Colomar
This attribute helps avoid memory leaks. Link: Cc: Liam Crilly Cc: Zhidao Hong Signed-off-by: Alejandro Colomar --- src/njs_clang.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) di

[PATCH 2/2] Using NJS_MALLOC() in functions that create new objects.

2023-01-30 Thread Alejandro Colomar
NGINX Unit introduced a memory leak recently due to forgetting to call the destructor. This could probably have been warned at compile time, or maybe at link time, by the compiler, if we had used the GNU attribute. Let's use it to prevent misuse of the APIs. It also helps self-document through s

[nginx] Fixed handling of very long locations (ticket #2435).

2023-01-30 Thread Sergey Kandaurov
details: https://hg.nginx.org/nginx/rev/4eb1383f6432 branches: changeset: 8121:4eb1383f6432 user: Maxim Dounin date: Thu Jan 26 03:34:44 2023 +0300 description: Fixed handling of very long locations (ticket #2435). Previously, location prefix length in ngx_http_location_tree_node_t

[nginx] Added warning about redefinition of listen socket protocol options.

2023-01-30 Thread Sergey Kandaurov
details: https://hg.nginx.org/nginx/rev/106328a70f4e branches: changeset: 8122:106328a70f4e user: Maxim Dounin date: Sat Jan 28 01:29:45 2023 +0300 description: Added warning about redefinition of listen socket protocol options. The "listen" directive in the http module can be used

[njs] Added description for --no-libxml2 option.

2023-01-30 Thread Konstantin Pavlov
details: https://hg.nginx.org/njs/rev/b0f3bc578f08 branches: changeset: 2029:b0f3bc578f08 user: Konstantin Pavlov date: Fri Jan 27 15:08:41 2023 -0800 description: Added description for --no-libxml2 option. diffstat: auto/help | 4 1 files changed, 4 insertions(+), 0 deletio

[njs] Report libxml2 used for build.

2023-01-30 Thread Konstantin Pavlov
details: https://hg.nginx.org/njs/rev/cba6c332ef5a branches: changeset: 2031:cba6c332ef5a user: Konstantin Pavlov date: Fri Jan 27 15:19:38 2023 -0800 description: Report libxml2 used for build. diffstat: auto/libxml2 | 2 ++ auto/summary | 4 2 files changed, 6 insertions(

[njs] Added pkg-config-based libxml2 detection.

2023-01-30 Thread Konstantin Pavlov
details: https://hg.nginx.org/njs/rev/c789bb7313d4 branches: changeset: 2030:c789bb7313d4 user: Konstantin Pavlov date: Fri Jan 27 15:10:57 2023 -0800 description: Added pkg-config-based libxml2 detection. diffstat: auto/libxml2 | 26 +- 1 files changed, 2

Re: [njs] Added pkg-config-based libxml2 detection.

2023-01-30 Thread Alejandro Colomar
Hi Konstantin! On 1/31/23 01:52, Konstantin Pavlov wrote: details: https://hg.nginx.org/njs/rev/c789bb7313d4 branches: changeset: 2030:c789bb7313d4 user: Konstantin Pavlov date: Fri Jan 27 15:10:57 2023 -0800 description: Added pkg-config-based libxml2 detection. diffstat: auto/

Re: [njs] Added pkg-config-based libxml2 detection.

2023-01-30 Thread Konstantin Pavlov
Hi Alejandro, On 30/01/2023 5:52 PM, Alejandro Colomar wrote: Hi Konstantin! On 1/31/23 01:52, Konstantin Pavlov wrote: details: https://hg.nginx.org/njs/rev/c789bb7313d4 branches: changeset: 2030:c789bb7313d4 user:  Konstantin Pavlov date:  Fri Jan 27 15:10:57 2023 -0800 description: