Maxim Dounin
831662ea73
Introduced worker number, ngx_worker.
2015-05-20 15:51:21 +03:00
Maxim Dounin
9456863c64
Configure: style.
2015-05-20 15:51:13 +03:00
Valentin Bartenev
5fd1f0fd59
Core: properly initialized written bytes counter in memory log.
2015-05-19 19:27:07 +03:00
Sergey Kandaurov
1ac2ceeb8d
Upstream hash: consistency across little/big endianness.
2015-05-18 16:05:44 +03:00
Ruslan Ermilov
7c48049b72
Upstream: $upstream_connect_time.
...
The variable keeps time spent on establishing a connection with
the upstream server.
2015-05-16 01:32:27 +03:00
Ruslan Ermilov
a0cfe06ec6
Upstream: times to obtain header/response are stored as ngx_msec_t.
2015-05-16 01:31:04 +03:00
Igor Sysoev
0106fe5106
Events: ngx_event_t size reduction by grouping bit fields.
2015-05-15 17:15:33 +03:00
Ruslan Ermilov
68e6c887d0
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.
2015-05-06 17:04:00 +03:00
Ruslan Ermilov
de2b39c702
Configure: handle deprecated options.
...
Removed the deprecated --without-http_limit_zone_module option.
Deprecated the --with-imap and --with-imap_ssl_module options.
2015-04-29 14:59:02 +03:00
Ruslan Ermilov
95ca7efd49
Removed the deprecated "imap" directive.
2015-04-29 13:53:24 +03:00
Ruslan Ermilov
909aa15688
Removed the deprecated "so_keepalive" directive.
2015-04-29 13:53:08 +03:00
Ruslan Ermilov
75fae2df1e
Removed deprecated HTTP directives.
2015-04-29 13:52:49 +03:00
Ruslan Ermilov
1554f987b3
Removed the deprecated "connections" directive.
2015-04-29 13:52:37 +03:00
Valentin Bartenev
b370ea3fa7
Fixed overflow detection in ngx_inet_addr().
...
Overflow detection of the last octet might not work.
Reported by Sergey Polovko.
2015-04-28 18:55:03 +03:00
Valentin Bartenev
e3efe0d999
Version bump.
2015-04-28 18:54:48 +03:00
Maxim Dounin
5bfbac7203
release-1.9.0 tag
2015-04-28 18:31:18 +03:00
Maxim Dounin
9b6eb4f737
nginx-1.9.0-RELEASE
2015-04-28 18:31:17 +03:00
Maxim Dounin
ffd7ee2660
Added stream module to win32 builds.
2015-04-27 18:51:18 +03:00
Maxim Dounin
f9d7aaa7b6
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
2015-04-27 18:25:42 +03:00
Maxim Dounin
a5e3b66ce3
Win32: fixed shm.handle loss on reload.
2015-04-27 03:44:30 +03:00
Maxim Dounin
3b43a7a702
Core: fixed nginx_shared_zone name.
2015-04-27 03:44:03 +03:00
Vladimir Homutov
366a6f29e4
Mail: error_log support.
2015-02-20 15:31:37 +03:00
Vladimir Homutov
bcf9cd2d24
Core: the ngx_set_connection_log() macro.
...
The http and stream versions of this macro were identical.
2015-04-25 22:44:02 +03:00
Roman Arutyunyan
7b383d5d3b
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.
2015-04-24 10:54:06 +03:00
Ruslan Ermilov
523387de77
Removed the "worker_rlimit_sigpending" directive.
...
It was only needed by the just removed rtsig module.
2015-04-23 14:26:11 +03:00
Ruslan Ermilov
71b90a9bdd
Removed the obsolete rtsig module.
2015-04-23 14:17:40 +03:00
Ruslan Ermilov
90fca2303b
Removed the obsolete aio module.
2015-04-22 18:57:32 +03:00
Roman Arutyunyan
e99406d3f0
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.
2015-04-22 19:55:04 +03:00
Ruslan Ermilov
ab98122416
Upstream: allow multiple upstreams to use the same shared zone.
2015-04-22 18:37:34 +03:00
Martin Mlynář
0b830caf30
Memcached: enabled ranges.
2015-04-21 21:04:36 +02:00
Ruslan Ermilov
31f5182119
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.
2015-04-21 19:09:04 +03:00
Sergey Kandaurov
bde284851a
Fixed building --with-stream when precompiled headers are used.
2015-04-20 17:36:51 +03:00
Sergey Kandaurov
2e527701f3
Limit req: removed check for unknown limit_req_zone.
...
With 48b3d5ddfb03, it's possible to specify limit_req_zone after limit_req.
2015-04-20 16:54:41 +03:00
Sergey Kandaurov
58aa1b73ea
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.
2015-04-20 16:53:04 +03:00
Ruslan Ermilov
c6d6ff095f
Stream: port from NGINX+.
2015-04-20 13:05:11 +03:00
Ruslan Ermilov
4fcfe3955b
Upstream: fixed unlocked access to peer->conns.
2015-04-19 22:41:09 +03:00
Ruslan Ermilov
3ae7fed7e1
Replaced the remaining NGX_OLD_THREADS check with NGX_WIN32.
2015-03-26 14:20:51 +03:00
Ruslan Ermilov
6e8ba34b90
Removed NGX_OLD_THREADS from select and poll modules.
...
These modules can't be compiled on win32.
2015-03-26 14:20:07 +03:00
Ruslan Ermilov
2514db4c42
Removed "worker_threads" and "thread_stack_size" directives.
2015-03-26 14:15:17 +03:00
Ruslan Ermilov
e095ef94b6
Removed unused thread-local-storage code.
2015-03-26 14:15:15 +03:00
Ruslan Ermilov
39f8463476
Removed ngx_threaded and related code.
2015-03-26 14:15:13 +03:00
Ruslan Ermilov
5886a316b5
Upstream: get rid of questionable micro-optimization in ip_hash.
...
If a peer was initially skipped due to max_fails, there's no reason
not to try it again if enough time has passed, and the next_upstream
logic is in action.
This also reduces diffs with NGINX Plus.
2015-04-16 20:09:11 +03:00
Sergey Kandaurov
224ad0943a
Core: ensure that ngx_config.h is always included first.
...
This fixes compilation of various 3rd party modules when nginx is
configured with threads.
2015-04-16 18:18:37 +03:00
Maxim Dounin
56f13aabc3
Version bump.
2015-04-16 17:26:19 +03:00
Ruslan Ermilov
fb2cb325d9
Upstream: the "zone" directive.
...
Upstreams with the "zone" directive are kept in shared memory,
with a consistent view of all worker processes.
2015-04-14 19:01:25 +03:00
Ruslan Ermilov
38f45f0f43
Upstreams: locking.
2015-04-14 19:01:23 +03:00
Ruslan Ermilov
ec8cab3f7f
Core: read/write locks.
2015-03-21 14:05:08 +03:00
Ruslan Ermilov
6245905f69
Upstream: store peers as a linked list.
...
This is an API change.
2015-04-10 14:48:36 +03:00
Ruslan Ermilov
9dae3abcc6
Upstream: track the number of active connections to upstreams.
...
This also simplifies the implementation of the least_conn module.
2015-04-10 13:16:23 +03:00
Ruslan Ermilov
a9849bc5d6
Fixed build, broken by 8b7f062a3fe6.
...
Casting a "const char *" to "char *" doesn't work on older gcc versions.
2015-04-16 15:05:40 +03:00