summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)AuthorFilesLines
2015-06-10Configure: search OpenSSL in a bunch of standard places.Ruslan Ermilov1-0/+48
2015-06-10Configure: moved NGX_SBIN_PATH variable initialization.Ruslan Ermilov2-4/+1
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.
2015-06-04Stream: access module.Vladimir Homutov6-12/+491
stream { server { ... allow 127.0.0.1; deny all; } }
2015-06-09Stream: added postconfiguration method to stream modules.Vladimir Homutov9-0/+30
2015-06-08Mail: listen backlog=.Ruslan Ermilov3-0/+17
2015-06-08Stream: listen backlog=.Ruslan Ermilov3-0/+17
2015-06-08Mail: embed ngx_mail_listen_t into ngx_mail_conf_addr_t.Ruslan Ermilov3-68/+48
2015-06-08Stream: embed ngx_stream_listen_t into ngx_stream_conf_addr_t.Ruslan Ermilov3-75/+49
2015-06-05Stream: fixed "reuseport" to actually work.Ruslan Ermilov2-0/+10
2015-06-05Added the REQUEST_SCHEME parameter.Maxim Dounin4-0/+4
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.
2015-06-04Upstream keepalive: reduced diffs to the plus version of nginx.Roman Arutyunyan1-39/+42
2015-06-05Style.Maxim Dounin1-1/+2
2015-06-03Event pipe: call ngx_handle_read_event() with a proper flags type.Sergey Kandaurov1-1/+1
The change was missed in f69d1aab6a0f.
2015-06-03Fixed misspellings of the word "dependencies".Ruslan Ermilov1-4/+4
2015-06-01Fixed excessive memory usage while parsing configuration.Valentin Bartenev1-1/+1
The b->pos points to the next symbol here. Reported by ilexshen.
2015-06-01Fixed spelling in change logs.Valentin Bartenev1-11/+11
2015-05-29Fixed bullying style of comments.Ruslan Ermilov1-4/+4
2015-05-29Version bump.Ruslan Ermilov1-2/+2
2015-05-26release-1.9.1 tagMaxim Dounin1-0/+1
2015-05-26nginx-1.9.1-RELEASErelease-1.9.1Maxim Dounin1-0/+74
2015-05-25Disabled SSLv3 by default (ticket #653).Maxim Dounin6-12/+9
2015-05-25Configure: GNU Hurd properly recognized.Maxim Dounin2-0/+17
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.
2015-05-21Fixed reuseport with accept_mutex.Maxim Dounin1-1/+6
2015-05-20Upstream: report to error_log when max_fails is reached.Ruslan Ermilov2-0/+10
This can be useful to understand why "no live upstreams" happens, in particular.
2015-05-20The "reuseport" option of the "listen" directive.Maxim Dounin12-6/+206
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.
2015-05-20Simplified ngx_http_init_listening().Maxim Dounin3-21/+3
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.
2015-05-20Introduced worker number, ngx_worker.Maxim Dounin4-0/+5
2015-05-20Configure: style.Maxim Dounin1-1/+1
2015-05-19Core: properly initialized written bytes counter in memory log.Valentin Bartenev1-1/+1
2015-05-18Upstream hash: consistency across little/big endianness.Sergey Kandaurov2-8/+30
2015-05-16Upstream: $upstream_connect_time.Ruslan Ermilov2-1/+14
The variable keeps time spent on establishing a connection with the upstream server.
2015-05-16Upstream: times to obtain header/response are stored as ngx_msec_t.Ruslan Ermilov2-30/+13
2015-05-15Events: ngx_event_t size reduction by grouping bit fields.Igor Sysoev1-9/+8
2015-05-06Events: made a failure to create a notification channel non-fatal.Ruslan Ermilov1-1/+1
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-04-29Configure: handle deprecated options.Ruslan Ermilov1-8/+12
Removed the deprecated --without-http_limit_zone_module option. Deprecated the --with-imap and --with-imap_ssl_module options.
2015-04-29Removed the deprecated "imap" directive.Ruslan Ermilov1-13/+0
2015-04-29Removed the deprecated "so_keepalive" directive.Ruslan Ermilov3-31/+0
2015-04-29Removed deprecated HTTP directives.Ruslan Ermilov1-33/+0
2015-04-29Removed the deprecated "connections" directive.Ruslan Ermilov1-13/+0
2015-04-28Fixed overflow detection in ngx_inet_addr().Valentin Bartenev1-5/+5
Overflow detection of the last octet might not work. Reported by Sergey Polovko.
2015-04-28Version bump.Valentin Bartenev1-2/+2
2015-04-28release-1.9.0 tagMaxim Dounin1-0/+1
2015-04-28nginx-1.9.0-RELEASErelease-1.9.0Maxim Dounin1-0/+78
2015-04-27Added stream module to win32 builds.Maxim Dounin1-0/+2
2015-04-27Win32: shared memory base addresses and remapping.Maxim Dounin4-2/+100
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-27Win32: fixed shm.handle loss on reload.Maxim Dounin1-0/+3
2015-04-27Core: fixed nginx_shared_zone name.Maxim Dounin1-1/+1
2015-02-20Mail: error_log support.Vladimir Homutov4-19/+54
2015-04-25Core: the ngx_set_connection_log() macro.Vladimir Homutov7-27/+17
The http and stream versions of this macro were identical.
2015-04-24Merge proxy_protocol setting of listen directives.Roman Arutyunyan1-1/+4
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.