[PATCH] Fix ngx_max_sockets variable, set actual value after use setrlimit(RLIMIT_NOFILE)

2019-10-24 Thread i
rno, "setrlimit(RLIMIT_NOFILE, %i) failed", ccf->rlimit_nofile); +} else { +ngx_max_sockets = ccf->rlimit_nofile; } } ___ nginx-devel mailing list nginx-d

[PATCH] Avoid multiple bind for the same address during config test

2019-04-12 Thread i
# HG changeset patch # User Andrey Kolyshkin # Date 1555075759 -10800 # Fri Apr 12 16:29:19 2019 +0300 # Node ID 549f07c848d82ef152ed54f31b25dcfe89452a66 # Parent 5155d0296a5ef9841f035920527ffdb771076b44 Avoid multiple bind for the same address during config test If reuseport is specified

cache for ngx_http_time()

2013-08-05 Thread Serguei I. Ivantsov
Hi! ngx_http_time() is called once per request and it call a heavy ngx_sprintf() function. Why not cache the output for one second (resolution of time_t)? I find nice time caching framework on ngx_times.c, with slots and memory barriers, but ngx_http_time() is not using it for some reason

Dead code in accept

2013-08-04 Thread Serguei I. Ivantsov
Hi, While researching nginx, I found that there are a lot of dead code, mostly in ngx_event_accept.c One of those blocks: if (ngx_event_flags NGX_USE_RTSIG_EVENT) { ev-available = 1; } else if (!(ngx_event_flags NGX_USE_KQUEUE_EVENT)) { ev-available = ecf-multi_accept

Re: build failed on Linux with x32 ABI

2013-06-26 Thread Serguei I. Ivantsov
Well, please apply the proper patch. It will also speeds up building on Linux, because rt signals (and included sysctl.h) are very rare nowadays. Yes, that's fine. But you placed the include added before semaphore.h instead of adding it to other event method related includes. I mean to do