]> git.kaiwu.me - nginx.git/log
nginx.git
10 years agonginx-1.9.3-RELEASE release-1.9.3
Maxim Dounin [Tue, 14 Jul 2015 16:46:05 +0000 (19:46 +0300)]
nginx-1.9.3-RELEASE

10 years agoUpdated PCRE used for win32 builds.
Maxim Dounin [Tue, 14 Jul 2015 16:44:19 +0000 (19:44 +0300)]
Updated PCRE used for win32 builds.

10 years agoStream: renamed rate limiting directives.
Roman Arutyunyan [Tue, 14 Jul 2015 16:38:13 +0000 (09:38 -0700)]
Stream: renamed rate limiting directives.

The directive proxy_downstream_limit_rate is now called proxy_upload_rate.
The directive proxy_upstream_limit_rate is now called proxy_download_rate.

10 years agoUpdated OpenSSL used for win32 builds.
Maxim Dounin [Tue, 14 Jul 2015 07:13:51 +0000 (10:13 +0300)]
Updated OpenSSL used for win32 builds.

10 years agoOCSP stapling: fixed segfault without nextUpdate.
Maxim Dounin [Mon, 13 Jul 2015 22:10:25 +0000 (01:10 +0300)]
OCSP stapling: fixed segfault without nextUpdate.

OCSP responses may contain no nextUpdate.  As per RFC 6960, this means
that nextUpdate checks should be bypassed.  Handle this gracefully by
using NGX_MAX_TIME_T_VALUE as "valid" in such a case.

The problem was introduced by 6893a1007a7c (1.9.2).

Reported by Matthew Baldwin.

10 years agoOCSP stapling: fixed ssl_stapling_file (ticket #769).
Maxim Dounin [Tue, 7 Jul 2015 13:38:49 +0000 (16:38 +0300)]
OCSP stapling: fixed ssl_stapling_file (ticket #769).

Broken by 6893a1007a7c (1.9.2) during introduction of strict OCSP response
validity checks.  As stapling file is expected to be returned unconditionally,
fix is to set its validity to the maximum supported time.

Reported by Faidon Liambotis.

10 years agoStream: fixed possible integer overflow in rate limiting.
Valentin Bartenev [Thu, 2 Jul 2015 14:20:29 +0000 (17:20 +0300)]
Stream: fixed possible integer overflow in rate limiting.

10 years agoStream: fixed MSVC compilation warning.
Roman Arutyunyan [Thu, 2 Jul 2015 14:15:32 +0000 (17:15 +0300)]
Stream: fixed MSVC compilation warning.

Thanks to itpp2012.

10 years agoStream: upstream "connected" flag.
Roman Arutyunyan [Thu, 25 Jun 2015 09:36:52 +0000 (12:36 +0300)]
Stream: upstream "connected" flag.

Once upstream is connected, the upstream buffer is allocated.  Previously, the
proxy module used the buffer allocation status to check if upstream is
connected.  Now it's enough to check the flag.

10 years agoStream: upstream and downstream limit rates.
Roman Arutyunyan [Tue, 23 Jun 2015 17:17:48 +0000 (20:17 +0300)]
Stream: upstream and downstream limit rates.

10 years agoStream: common handler for upstream and downstream.
Roman Arutyunyan [Tue, 23 Jun 2015 17:17:47 +0000 (20:17 +0300)]
Stream: common handler for upstream and downstream.

10 years agoStream: avoid SSL_CTX_set_tmp_rsa_callback() call with LibreSSL.
Piotr Sikora [Thu, 18 Jun 2015 10:36:41 +0000 (03:36 -0700)]
Stream: avoid SSL_CTX_set_tmp_rsa_callback() call with LibreSSL.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
10 years agoUpstream: fixed shared upstreams on win32.
Ruslan Ermilov [Mon, 15 Jun 2015 21:43:00 +0000 (00:43 +0300)]
Upstream: fixed shared upstreams on win32.

10 years agoStream: connection limiting module.
Vladimir Homutov [Thu, 18 Jun 2015 11:17:30 +0000 (14:17 +0300)]
Stream: connection limiting module.

stream {
    limit_conn_zone $binary_remote_addr zone=perip:1m;
    limit_conn_log_level error;

    server {
        ...
        limit_conn perip 1;
    }
}

10 years agoResolver: canceled resend timer on empty resend queues.
Sergey Kandaurov [Wed, 17 Jun 2015 14:57:34 +0000 (17:57 +0300)]
Resolver: canceled resend timer on empty resend queues.

This is specifically useful on graceful shutdown.

10 years agoConfigure: create missing intermediates for build directory.
Piotr Sikora [Thu, 11 Jun 2015 02:18:19 +0000 (19:18 -0700)]
Configure: create missing intermediates for build directory.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
10 years agoConfigure: fix tests with multi-level relative build directory.
Ruslan Ermilov [Wed, 17 Jun 2015 11:15:27 +0000 (14:15 +0300)]
Configure: fix tests with multi-level relative build directory.

Based on a patch by Piotr Sikora.

10 years agoDisabled duplicate http, mail, and stream blocks.
Vladimir Homutov [Tue, 16 Jun 2015 20:28:38 +0000 (23:28 +0300)]
Disabled duplicate http, mail, and stream blocks.

Such configurations have very limited use, introduce various problems and
are not officially supported.

10 years agoVersion bump.
Vladimir Homutov [Tue, 16 Jun 2015 20:31:31 +0000 (23:31 +0300)]
Version bump.

10 years agorelease-1.9.2 tag
Maxim Dounin [Tue, 16 Jun 2015 14:49:40 +0000 (17:49 +0300)]
release-1.9.2 tag

10 years agonginx-1.9.2-RELEASE release-1.9.2
Maxim Dounin [Tue, 16 Jun 2015 14:49:39 +0000 (17:49 +0300)]
nginx-1.9.2-RELEASE

10 years agoPolished the recent change to the manpage.
Ruslan Ermilov [Tue, 16 Jun 2015 13:52:13 +0000 (16:52 +0300)]
Polished the recent change to the manpage.

10 years agoDocumentation: added -T option description to the man page.
Vladimir Homutov [Tue, 16 Jun 2015 13:28:56 +0000 (16:28 +0300)]
Documentation: added -T option description to the man page.

11 years agoCore: store and dump processed configuration.
Vladimir Homutov [Thu, 14 May 2015 15:54:27 +0000 (18:54 +0300)]
Core: store and dump processed configuration.

If the -T option is passed, additionally to configuration test, configuration
files are output to stdout.

In the debug mode, configuration files are kept in memory and can be accessed
using a debugger.

10 years agoCore: added support for writing to stdout.
Vladimir Homutov [Tue, 16 Jun 2015 12:47:40 +0000 (15:47 +0300)]
Core: added support for writing to stdout.

10 years agoCore: renamed ngx_proxy_protocol_parse to ngx_proxy_protocol_read.
Roman Arutyunyan [Tue, 16 Jun 2015 10:45:19 +0000 (13:45 +0300)]
Core: renamed ngx_proxy_protocol_parse to ngx_proxy_protocol_read.

The new name is consistent with the ngx_proxy_protocol_write function.

10 years agoStream: client-side PROXY protocol.
Roman Arutyunyan [Tue, 16 Jun 2015 10:45:16 +0000 (13:45 +0300)]
Stream: client-side PROXY protocol.

The new directive "proxy_protocol" toggles sending out PROXY protocol header
to upstream once connection is established.

10 years agoStream: the "proxy_bind" directive.
Vladimir Homutov [Tue, 16 Jun 2015 06:02:45 +0000 (09:02 +0300)]
Stream: the "proxy_bind" directive.

10 years agoUpdated OpenSSL used for win32 builds.
Maxim Dounin [Mon, 15 Jun 2015 17:20:12 +0000 (20:20 +0300)]
Updated OpenSSL used for win32 builds.

10 years agoOCSP stapling: avoid sending expired responses (ticket #425).
Maxim Dounin [Thu, 11 Jun 2015 17:42:39 +0000 (20:42 +0300)]
OCSP stapling: avoid sending expired responses (ticket #425).

10 years agoMoved ngx_http_parse_time() to core, renamed accordingly.
Maxim Dounin [Thu, 11 Jun 2015 17:42:31 +0000 (20:42 +0300)]
Moved ngx_http_parse_time() to core, renamed accordingly.

The function is now called ngx_parse_http_time(), and can be used by
any code to parse HTTP-style date and time.  In particular, it will be
used for OCSP stapling.

For compatibility, a macro to map ngx_http_parse_time() to the new name
provided for a while.

10 years agoRemoved unused ngx_http_get_time() declaration.
Maxim Dounin [Thu, 11 Jun 2015 17:42:24 +0000 (20:42 +0300)]
Removed unused ngx_http_get_time() declaration.

10 years agoConfigure: added gcc5 to the list of known GCC versions.
Valentin Bartenev [Wed, 10 Jun 2015 16:18:20 +0000 (19:18 +0300)]
Configure: added gcc5 to the list of known GCC versions.

10 years agoConfigure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov [Wed, 10 Jun 2015 09:25:45 +0000 (12:25 +0300)]
Configure: search OpenSSL in a bunch of standard places.

10 years agoConfigure: moved NGX_SBIN_PATH variable initialization.
Ruslan Ermilov [Wed, 10 Jun 2015 09:25:31 +0000 (12:25 +0300)]
Configure: moved NGX_SBIN_PATH variable initialization.

It's now initialized in auto/options like the rest of variables
for system paths.

As a side effect, the currently unused macro NGX_SBIN_PATH now
gets the correct value.

10 years agoStream: access module.
Vladimir Homutov [Thu, 4 Jun 2015 10:04:12 +0000 (13:04 +0300)]
Stream: access module.

stream {
    server {
        ...
        allow 127.0.0.1;
        deny all;
    }
}

10 years agoStream: added postconfiguration method to stream modules.
Vladimir Homutov [Tue, 9 Jun 2015 10:00:45 +0000 (13:00 +0300)]
Stream: added postconfiguration method to stream modules.

10 years agoMail: listen backlog=.
Ruslan Ermilov [Mon, 8 Jun 2015 20:13:56 +0000 (23:13 +0300)]
Mail: listen backlog=.

10 years agoStream: listen backlog=.
Ruslan Ermilov [Mon, 8 Jun 2015 20:13:33 +0000 (23:13 +0300)]
Stream: listen backlog=.

10 years agoMail: embed ngx_mail_listen_t into ngx_mail_conf_addr_t.
Ruslan Ermilov [Mon, 8 Jun 2015 20:11:58 +0000 (23:11 +0300)]
Mail: embed ngx_mail_listen_t into ngx_mail_conf_addr_t.

10 years agoStream: embed ngx_stream_listen_t into ngx_stream_conf_addr_t.
Ruslan Ermilov [Mon, 8 Jun 2015 20:11:42 +0000 (23:11 +0300)]
Stream: embed ngx_stream_listen_t into ngx_stream_conf_addr_t.

10 years agoStream: fixed "reuseport" to actually work.
Ruslan Ermilov [Fri, 5 Jun 2015 20:03:13 +0000 (23:03 +0300)]
Stream: fixed "reuseport" to actually work.

10 years agoAdded the REQUEST_SCHEME parameter.
Maxim Dounin [Fri, 5 Jun 2015 19:23:26 +0000 (22:23 +0300)]
Added the REQUEST_SCHEME parameter.

The REQUEST_SCHEME parameter was introduced in Apache 2.3.11 and seems
to be used by some scripts now.  It looks more logical than previously
used HTTPS.

10 years agoUpstream keepalive: reduced diffs to the plus version of nginx.
Roman Arutyunyan [Thu, 4 Jun 2015 20:46:44 +0000 (23:46 +0300)]
Upstream keepalive: reduced diffs to the plus version of nginx.

10 years agoStyle.
Maxim Dounin [Fri, 5 Jun 2015 14:10:34 +0000 (17:10 +0300)]
Style.

10 years agoEvent pipe: call ngx_handle_read_event() with a proper flags type.
Sergey Kandaurov [Wed, 3 Jun 2015 16:12:26 +0000 (19:12 +0300)]
Event pipe: call ngx_handle_read_event() with a proper flags type.

The change was missed in f69d1aab6a0f.

10 years agoFixed misspellings of the word "dependencies".
Ruslan Ermilov [Wed, 3 Jun 2015 05:23:35 +0000 (08:23 +0300)]
Fixed misspellings of the word "dependencies".

10 years agoFixed excessive memory usage while parsing configuration.
Valentin Bartenev [Mon, 1 Jun 2015 18:08:56 +0000 (21:08 +0300)]
Fixed excessive memory usage while parsing configuration.

The b->pos points to the next symbol here.

Reported by ilexshen.

10 years agoFixed spelling in change logs.
Valentin Bartenev [Mon, 1 Jun 2015 13:58:07 +0000 (16:58 +0300)]
Fixed spelling in change logs.

10 years agoFixed bullying style of comments.
Ruslan Ermilov [Fri, 29 May 2015 06:26:33 +0000 (09:26 +0300)]
Fixed bullying style of comments.

10 years agoVersion bump.
Ruslan Ermilov [Fri, 29 May 2015 06:26:27 +0000 (09:26 +0300)]
Version bump.

10 years agorelease-1.9.1 tag
Maxim Dounin [Tue, 26 May 2015 13:49:51 +0000 (16:49 +0300)]
release-1.9.1 tag

10 years agonginx-1.9.1-RELEASE release-1.9.1
Maxim Dounin [Tue, 26 May 2015 13:49:50 +0000 (16:49 +0300)]
nginx-1.9.1-RELEASE

10 years agoDisabled SSLv3 by default (ticket #653).
Maxim Dounin [Mon, 25 May 2015 14:58:20 +0000 (17:58 +0300)]
Disabled SSLv3 by default (ticket #653).

10 years agoConfigure: GNU Hurd properly recognized.
Maxim Dounin [Mon, 25 May 2015 14:58:13 +0000 (17:58 +0300)]
Configure: GNU Hurd properly recognized.

With this change it's no longer needed to pass -D_GNU_SOURCE manually,
and -D_FILE_OFFSET_BITS=64 is set to use 64-bit off_t.

Note that nginx currently fails to work properly with master process
enabled on GNU Hurd, as fcntl(F_SETOWN) returns EOPNOTSUPP for sockets
as of GNU Hurd 0.6.  Additionally, our strerror() preloading doesn't
work well with GNU Hurd, as it uses large numbers for most errors.

10 years agoFixed reuseport with accept_mutex.
Maxim Dounin [Thu, 21 May 2015 16:39:11 +0000 (19:39 +0300)]
Fixed reuseport with accept_mutex.

10 years agoUpstream: report to error_log when max_fails is reached.
Ruslan Ermilov [Wed, 20 May 2015 19:44:00 +0000 (22:44 +0300)]
Upstream: report to error_log when max_fails is reached.

This can be useful to understand why "no live upstreams" happens,
in particular.

10 years agoThe "reuseport" option of the "listen" directive.
Maxim Dounin [Wed, 20 May 2015 12:51:56 +0000 (15:51 +0300)]
The "reuseport" option of the "listen" directive.

When configured, an individual listen socket on a given address is
created for each worker process.  This allows to reduce in-kernel lock
contention on configurations with high accept rates, resulting in better
performance.  As of now it works on Linux and DragonFly BSD.

Note that on Linux incoming connection requests are currently tied up
to a specific listen socket, and if some sockets are closed, connection
requests will be reset, see https://lwn.net/Articles/542629/.  With
nginx, this may happen if the number of worker processes is reduced.
There is no such problem on DragonFly BSD.

Based on previous work by Sepherosa Ziehau and Yingqi Lu.

10 years agoSimplified ngx_http_init_listening().
Maxim Dounin [Wed, 20 May 2015 12:51:28 +0000 (15:51 +0300)]
Simplified ngx_http_init_listening().

There is no need to set "i" to 0, as it's expected to be 0 assuming
the bindings are properly sorted, and we already rely on this when
explicitly set hport->naddrs to 1.  Remaining conditional code is
replaced with identical "hport->naddrs = i + 1".

Identical modifications are done in the mail and stream modules,
in the ngx_mail_optimize_servers() and ngx_stream_optimize_servers()
functions, respectively.

No functional changes.

10 years agoIntroduced worker number, ngx_worker.
Maxim Dounin [Wed, 20 May 2015 12:51:21 +0000 (15:51 +0300)]
Introduced worker number, ngx_worker.

10 years agoConfigure: style.
Maxim Dounin [Wed, 20 May 2015 12:51:13 +0000 (15:51 +0300)]
Configure: style.

10 years agoCore: properly initialized written bytes counter in memory log.
Valentin Bartenev [Tue, 19 May 2015 16:27:07 +0000 (19:27 +0300)]
Core: properly initialized written bytes counter in memory log.

10 years agoUpstream hash: consistency across little/big endianness.
Sergey Kandaurov [Mon, 18 May 2015 13:05:44 +0000 (16:05 +0300)]
Upstream hash: consistency across little/big endianness.

10 years agoUpstream: $upstream_connect_time.
Ruslan Ermilov [Fri, 15 May 2015 22:32:27 +0000 (01:32 +0300)]
Upstream: $upstream_connect_time.

The variable keeps time spent on establishing a connection with
the upstream server.

10 years agoUpstream: times to obtain header/response are stored as ngx_msec_t.
Ruslan Ermilov [Fri, 15 May 2015 22:31:04 +0000 (01:31 +0300)]
Upstream: times to obtain header/response are stored as ngx_msec_t.

11 years agoEvents: ngx_event_t size reduction by grouping bit fields.
Igor Sysoev [Fri, 15 May 2015 14:15:33 +0000 (17:15 +0300)]
Events: ngx_event_t size reduction by grouping bit fields.

11 years agoEvents: made a failure to create a notification channel non-fatal.
Ruslan Ermilov [Wed, 6 May 2015 14:04:00 +0000 (17:04 +0300)]
Events: made a failure to create a notification channel non-fatal.

This may happen if eventfd() returns ENOSYS, notably seen on CentOS 5.4.
Such a failure will now just disable the notification mechanism and let
the callers cope with it, instead of failing to start worker processes.
If thread pools are not configured, this can safely be ignored.

11 years agoConfigure: handle deprecated options.
Ruslan Ermilov [Wed, 29 Apr 2015 11:59:02 +0000 (14:59 +0300)]
Configure: handle deprecated options.

Removed the deprecated --without-http_limit_zone_module option.
Deprecated the --with-imap and --with-imap_ssl_module options.

11 years agoRemoved the deprecated "imap" directive.
Ruslan Ermilov [Wed, 29 Apr 2015 10:53:24 +0000 (13:53 +0300)]
Removed the deprecated "imap" directive.

11 years agoRemoved the deprecated "so_keepalive" directive.
Ruslan Ermilov [Wed, 29 Apr 2015 10:53:08 +0000 (13:53 +0300)]
Removed the deprecated "so_keepalive" directive.

11 years agoRemoved deprecated HTTP directives.
Ruslan Ermilov [Wed, 29 Apr 2015 10:52:49 +0000 (13:52 +0300)]
Removed deprecated HTTP directives.

11 years agoRemoved the deprecated "connections" directive.
Ruslan Ermilov [Wed, 29 Apr 2015 10:52:37 +0000 (13:52 +0300)]
Removed the deprecated "connections" directive.

11 years agoFixed overflow detection in ngx_inet_addr().
Valentin Bartenev [Tue, 28 Apr 2015 15:55:03 +0000 (18:55 +0300)]
Fixed overflow detection in ngx_inet_addr().

Overflow detection of the last octet might not work.

Reported by Sergey Polovko.

11 years agoVersion bump.
Valentin Bartenev [Tue, 28 Apr 2015 15:54:48 +0000 (18:54 +0300)]
Version bump.

11 years agorelease-1.9.0 tag
Maxim Dounin [Tue, 28 Apr 2015 15:31:18 +0000 (18:31 +0300)]
release-1.9.0 tag

11 years agonginx-1.9.0-RELEASE release-1.9.0
Maxim Dounin [Tue, 28 Apr 2015 15:31:17 +0000 (18:31 +0300)]
nginx-1.9.0-RELEASE

11 years agoAdded stream module to win32 builds.
Maxim Dounin [Mon, 27 Apr 2015 15:51:18 +0000 (18:51 +0300)]
Added stream module to win32 builds.

11 years agoWin32: shared memory base addresses and remapping.
Maxim Dounin [Mon, 27 Apr 2015 15:25:42 +0000 (18:25 +0300)]
Win32: shared memory base addresses and remapping.

Two mechanisms are implemented to make it possible to store pointers
in shared memory on Windows, in particular on Windows Vista and later
versions with ASLR:

- The ngx_shm_remap() function added to allow remapping of a shared memory
  zone to the address originally used for it in the master process.  While
  important, it doesn't solve the problem by itself as in many cases it's
  not possible to use the address because of conflicts with other
  allocations.

- We now create mappings at the same address in all processes by starting
  mappings at predefined addresses normally unused by newborn processes.

These two mechanisms combined allow to use shared memory on Windows
almost without problems, including reloads.

Based on the patch by Sergey Brester:
http://mailman.nginx.org/pipermail/nginx-devel/2015-April/006836.html

11 years agoWin32: fixed shm.handle loss on reload.
Maxim Dounin [Mon, 27 Apr 2015 00:44:30 +0000 (03:44 +0300)]
Win32: fixed shm.handle loss on reload.

11 years agoCore: fixed nginx_shared_zone name.
Maxim Dounin [Mon, 27 Apr 2015 00:44:03 +0000 (03:44 +0300)]
Core: fixed nginx_shared_zone name.

11 years agoMail: error_log support.
Vladimir Homutov [Fri, 20 Feb 2015 12:31:37 +0000 (15:31 +0300)]
Mail: error_log support.

11 years agoCore: the ngx_set_connection_log() macro.
Vladimir Homutov [Sat, 25 Apr 2015 19:44:02 +0000 (22:44 +0300)]
Core: the ngx_set_connection_log() macro.

The http and stream versions of this macro were identical.

11 years agoMerge proxy_protocol setting of listen directives.
Roman Arutyunyan [Fri, 24 Apr 2015 07:54:06 +0000 (10:54 +0300)]
Merge proxy_protocol setting of listen directives.

It's now enough to specify proxy_protocol option in one listen directive to
enable it in all servers listening on the same address/port.  Previously,
the setting from the first directive was always used.

11 years agoRemoved the "worker_rlimit_sigpending" directive.
Ruslan Ermilov [Thu, 23 Apr 2015 11:26:11 +0000 (14:26 +0300)]
Removed the "worker_rlimit_sigpending" directive.

It was only needed by the just removed rtsig module.

11 years agoRemoved the obsolete rtsig module.
Ruslan Ermilov [Thu, 23 Apr 2015 11:17:40 +0000 (14:17 +0300)]
Removed the obsolete rtsig module.

11 years agoRemoved the obsolete aio module.
Ruslan Ermilov [Wed, 22 Apr 2015 15:57:32 +0000 (18:57 +0300)]
Removed the obsolete aio module.

11 years agoStream: prevent repeated event notifications after eof.
Roman Arutyunyan [Wed, 22 Apr 2015 16:55:04 +0000 (19:55 +0300)]
Stream: prevent repeated event notifications after eof.

When client or upstream connection is closed, level-triggered read event
remained active until the end of the session leading to cpu hog.  Now the flag
NGX_CLOSE_EVENT is used to unschedule the event.

11 years agoUpstream: allow multiple upstreams to use the same shared zone.
Ruslan Ermilov [Wed, 22 Apr 2015 15:37:34 +0000 (18:37 +0300)]
Upstream: allow multiple upstreams to use the same shared zone.

11 years agoMemcached: enabled ranges.
Martin Mlynář [Tue, 21 Apr 2015 19:04:36 +0000 (21:04 +0200)]
Memcached: enabled ranges.

11 years agoUpstream: simplified ip_hash and hash peer selection code.
Ruslan Ermilov [Tue, 21 Apr 2015 16:09:04 +0000 (19:09 +0300)]
Upstream: simplified ip_hash and hash peer selection code.

Now that peers are stored as a list, the weighted and unweighted
cases became nearly identical.

11 years agoFixed building --with-stream when precompiled headers are used.
Sergey Kandaurov [Mon, 20 Apr 2015 14:36:51 +0000 (17:36 +0300)]
Fixed building --with-stream when precompiled headers are used.

11 years agoLimit req: removed check for unknown limit_req_zone.
Sergey Kandaurov [Mon, 20 Apr 2015 13:54:41 +0000 (16:54 +0300)]
Limit req: removed check for unknown limit_req_zone.

With 48b3d5ddfb03, it's possible to specify limit_req_zone after limit_req.

11 years agoCore: allow shared memory size to be declared after a reference.
Sergey Kandaurov [Mon, 20 Apr 2015 13:53:04 +0000 (16:53 +0300)]
Core: allow shared memory size to be declared after a reference.

For example, this fixes the case when "proxy_cache_path" is specified
after "proxy_cache" that references it.

11 years agoStream: port from NGINX+.
Ruslan Ermilov [Mon, 20 Apr 2015 10:05:11 +0000 (13:05 +0300)]
Stream: port from NGINX+.

11 years agoUpstream: fixed unlocked access to peer->conns.
Ruslan Ermilov [Sun, 19 Apr 2015 19:41:09 +0000 (22:41 +0300)]
Upstream: fixed unlocked access to peer->conns.

11 years agoReplaced the remaining NGX_OLD_THREADS check with NGX_WIN32.
Ruslan Ermilov [Thu, 26 Mar 2015 11:20:51 +0000 (14:20 +0300)]
Replaced the remaining NGX_OLD_THREADS check with NGX_WIN32.

11 years agoRemoved NGX_OLD_THREADS from select and poll modules.
Ruslan Ermilov [Thu, 26 Mar 2015 11:20:07 +0000 (14:20 +0300)]
Removed NGX_OLD_THREADS from select and poll modules.

These modules can't be compiled on win32.

11 years agoRemoved "worker_threads" and "thread_stack_size" directives.
Ruslan Ermilov [Thu, 26 Mar 2015 11:15:17 +0000 (14:15 +0300)]
Removed "worker_threads" and "thread_stack_size" directives.

11 years agoRemoved unused thread-local-storage code.
Ruslan Ermilov [Thu, 26 Mar 2015 11:15:15 +0000 (14:15 +0300)]
Removed unused thread-local-storage code.

11 years agoRemoved ngx_threaded and related code.
Ruslan Ermilov [Thu, 26 Mar 2015 11:15:13 +0000 (14:15 +0300)]
Removed ngx_threaded and related code.