Hello!
On Tue, Sep 18, 2018 at 08:12:20AM -0400, Thomas Ward wrote:
> Downstream in Ubuntu, it has been proposed to demote pcre3 and
> use pcre2 instead as it is newer.
> https://trac.nginx.org/nginx/ticket/720 shows it was marked 4
> years ago that NGINX does not support pcre2. Are there any
> plans to use pcre2 instead of pcre3?
There are no immediate plans.
When we last checked, there were no problems with PCRE, but PCRE2
wasn't available in most distributions we support, making the
switch mostly meaningless.
Also, it looks like PCRE2 is still not supported even by Exim,
which is the parent project of PCRE and PCRE2:
https://bugs.exim.org/show_bug.cgi?id=1878
As such, adding PCRE2 support to nginx looks premature.
--
Maxim Dounin
http://mdounin.ru/
Hello!
As far as I understand it, `ngx_create_pidfile` is a function that works
independently. There is no action to close the pid file externally, so we
need to close the pid file when the writing it failed. There are also
reports here https://github.com/nginx/nginx/pull/52.
# HG changeset patch
# User Jinhua Tan <312841925(a)qq.com>
# Date 1590068494 -28800
# Thu May 21 21:41:34 2020 +0800
# Node ID 6084ea4d9a4d2ae32f3fc4e2e3b9032ab0b71e30
# Parent 3242f98298975e556a7e87130611ce84799fe935
Core: close pid file while writing it failed.
diff -r 3242f9829897 -r 6084ea4d9a4d src/core/ngx_cycle.c
--- a/src/core/ngx_cycle.c Wed May 20 12:24:05 2020 +0800
+++ b/src/core/ngx_cycle.c Thu May 21 21:41:34 2020 +0800
@@ -1036,6 +1036,12 @@
len = ngx_snprintf(pid, NGX_INT64_LEN + 2, "%P%N", ngx_pid) - pid;
if (ngx_write_file(&file, pid, len, 0) == NGX_ERROR) {
+
+ if (ngx_close_file(file.fd) == NGX_FILE_ERROR) {
+ ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
+ ngx_close_file_n " \"%s\" failed",
file.name.data);
+ }
+
return NGX_ERROR;
}
}
Thank you!
HI..! Team,
I try to Compile NGINX + LuaJIT as STATIC Build,
I want to Embedding LuaJIT inside the NGINX.
The below script will generate NGINX with size 17MB.
https://github.com/balajipothula/nginx/blob/master/compile-nginx-on-ubuntu1…
.
I tried with OpenResty source also.
The below script will generate NGINX with LuaJIT (Dynamic Linking) with
size 47MB.
https://github.com/balajipothula/nginx/blob/master/compile-nginx-lua-on-ubu…
I am expecting a Lean NGINX + LuaJIT only as a STATIC Build.
Drag and Drop the nginx folder, It should work like a charm (If possible
any Linux Family OS)
I am trying to add More Power to NGINX with luaposix, same time NGINX
should be Lean.
Could you please Help me.
nginx
├── bin
│ └── nginx
├── client_body_temp
├── conf
│ ├── mime.types
│ └── nginx.conf
├── fastcgi_temp
├── html
│ ├── 50x.html
│ └── index.html
├── log
│ ├── access.log
│ ├── error.log
│ └── nginx.pid
├── proxy_temp
├── scgi_temp
└── uwsgi_temp
Thanks and Regards,
BALAJI.