aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* Fixed debug logging in ngx_http_parse_complex_uri().Maxim Dounin2013-06-05
| | | | | The *u previously logged isn't yet initialized at this point, and Valgrind complains.
* Mail: fixed possible uninitialized memory access.Maxim Dounin2013-06-05
| | | | Found by Valgrind.
* Valgrind: supressed complaints about uninitialized bytes.Maxim Dounin2013-06-05
| | | | | | | | | | | | | | | | Valgrind complains if we pass uninitialized memory to a syscall: ==36492== Syscall param sendmsg(msg.msg_iov[0]) points to uninitialised byte(s) ==36492== at 0x6B5E6A: sendmsg (in /usr/lib/system/libsystem_kernel.dylib) ==36492== by 0x10004288E: ngx_signal_worker_processes (ngx_process_cycle.c:527) ==36492== by 0x1000417A7: ngx_master_process_cycle (ngx_process_cycle.c:203) ==36492== by 0x100001F10: main (nginx.c:410) ==36492== Address 0x7fff5fbff71c is on thread 1's stack Even initialization of all members of the structure passed isn't enough, as there is padding which still remains uninitialized and results in Valgrind complaint. Note there is no real problem here as data from uninitialized memory isn't used.
* Valgrind: sigaction() failure now ignored.Maxim Dounin2013-06-05
| | | | | | Valgrind intercepts SIGUSR2 in some cases, and nginx might not be able to start due to sigaction() failure. If compiled with NGX_VALGRIND defined, we now ignore the failure of sigaction().
* Status: the "last_in_chain" flag must be set.Valentin Bartenev2013-06-05
| | | | The module always produces only one and obviously the last buffer in chain.
* SPDY: use proper macros for value length and headers counter.Valentin Bartenev2013-06-05
| | | | | Currently these macros are synonyms, but this may change in the future (in particular, spdy/3 uses 4 bytes for lengths).
* Version bump.Maxim Dounin2013-06-04
|
* Core: fixed handling of "stderr" in error_log.Vladimir Homutov2013-06-04
| | | | | | If "stderr" was specified in one of the "error_log" directives, stderr is not redirected to the first error_log on startup, configuration reload, and reopening log files.
* Core: fixed stderr redirection on win32 in ngx_reopen_files().Vladimir Homutov2013-06-03
| | | | | | | On win32 stderr was not redirected into a file specified by "error_log" while reopening files. Fix is to use platform-independent functions to work with stderr, as already used by ngx_init_cycle() and main() since rev. d8316f307b6a.
* Win32: accept_mutex now always disabled (ticket #362).Maxim Dounin2013-05-31
| | | | | | Use of accept mutex on win32 may result in a deadlock if there are multiple worker_processes configured and the mutex is grabbed by a process which can't accept connections.
* OCSP stapling: fixed incorrect debug level.Ruslan Ermilov2013-05-31
|
* Access: support for UNIX-domain client addresses (ticket #359).Ruslan Ermilov2013-05-30
|
* Win32: added missing reset of wev->ready on WSAEWOULDBLOCK.Maxim Dounin2013-05-29
| | | | | This fixes connection hang with websockets proxy, and likely some other places as well.
* Upstream: http_403 support in proxy_next_upstream (and friends).Maxim Dounin2013-05-27
| | | | | | | | | The parameter is mostly identical to http_404, and is expected to be used in similar situations. The 403 code might be returned by a backend instead of 404 on initial sync of new directories with rsync. See here for feature request and additional details: http://mailman.nginx.org/pipermail/nginx-ru/2013-April/050920.html
* Xslt: xslt_last_modified directive.Maxim Dounin2013-05-24
| | | | | Directive is similar to ssi_last_modified and sub_filter_last_modified directives introduced by previous commits.
* Sub filter: sub_filter_last_modified directive.Maxim Dounin2013-05-24
| | | | | | Directive is similar to ssi_last_modified introduced by previous commit. Patch by Alexey Kolpakov.
* SSI: ssi_last_modified directive.Maxim Dounin2013-05-24
| | | | | | | | | | The "ssi_last_modified" directive allows to preserve Last-Modified header in SSI responses. The directive is similar to SSILastModified one available in Apache: http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilastmodified Patch by Alexey Kolpakov.
* Core: strengthen configuration syntax checker.Valentin Bartenev2013-05-23
| | | | | | | | | | | | | It is now a syntax error if tokens passed to a custom configuration handler are terminated by "{". The following incorrect configuration is now properly rejected: map $v $v2 { a b { c d { e f { }
* Memcached: stricten header validation.Ruslan Ermilov2013-05-23
| | | | | | | | | | | | | | An invalid memcached reply that started with '\n' could cause segmentation fault. An invalid memcached reply "VALUE / 0 2\r?ok\r\nEND\r\n" was considered as a valid response. In addition, if memcached reports that the key was not found, set u->headers_in.content_length_n to 0. This ensures that ngx_http_memcached_filter() will not be called while previous code relied on always intercepting 404. Initialization of ctx->rest was moved to where it belongs.
* Use "void" for functions with empty parameter list.Sergey Kandaurov2013-05-23
|
* Style: replace SSL *ssl with ngx_ssl_conn_t *ssl_conn.Piotr Sikora2013-05-21
| | | | | | No functional changes. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Style: remove unnecessary references to HTTP from non-HTTP modules.Piotr Sikora2013-05-21
| | | | | | No functional changes. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Referer module: added $invalid_referer to variables hash.Maxim Dounin2013-05-22
| | | | | | | This makes it accessible via dynamic lookup with ngx_http_get_variable() from Perl, SSI, etc. Patch by Yichun Zhang (agentzh).
* Upstream: fixed fail_timeout and max_fails > 1.Maxim Dounin2013-05-21
| | | | | | | | | | Due to peer->checked always set since rev. c90801720a0c (1.3.0) by round-robin and least_conn balancers (ip_hash not affected), the code in ngx_http_upstream_free_round_robin_peer() function incorrectly reset peer->fails too often. Reported by Dmitry Popov, http://mailman.nginx.org/pipermail/nginx-devel/2013-May/003720.html
* Mail: missing ngx_ssl_ecdh_curve() call.F. da Silva2013-05-10
|
* Fixed error logging.Sergey Kandaurov2013-05-21
| | | | The provided argument list didn't follow a used format string.
* Upstream: slightly optimized ngx_http_upstream_process_header().Ruslan Ermilov2013-05-21
|
* Upstream: made the assignment more obvious.Ruslan Ermilov2013-05-21
| | | | No functional changes.
* OCSP stapling: fix error logging of successful OCSP responses.Piotr Sikora2013-05-16
| | | | | | | | | | Due to a bad argument list, nginx worker would crash (SIGSEGV) while trying to log the fact that it received OCSP response with "revoked" or "unknown" certificate status. While there, fix similar (but non-crashing) error a few lines above. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Mail: removed surplus ngx_close_connection() call.Filipe Da Silva2013-05-09
| | | | It is already called for a peer connection a few lines above.
* Upstream keepalive: slightly simplified code.Ruslan Ermilov2013-05-15
|
* Proxy: clear script engine used to calculate lengths.Maxim Dounin2013-05-15
| | | | | Previous code is believed to be safe, but might access uninitialized memory (e.g., e->quote).
* Fixed lingering_time check.Maxim Dounin2013-05-13
| | | | | | | | | | | | | There are two significant changes in this patch: 1) The <= 0 comparison is done with a signed type. This fixes the case of ngx_time() being larger than r->lingering_time. 2) Calculation of r->lingering_time - ngx_time() is now always done in the ngx_msec_t type. This ensures the calculation is correct even if time_t is unsigned and differs in size from ngx_msec_t. Thanks to Lanshun Zhou.
* Upstream: allow to intercept responses with status 300.Ruslan Ermilov2013-05-13
| | | | | This fixes an omission made in 9e7926763f87 where all 3XX statuses were allowed for "error_page".
* PCRE: retain input pattern for all regular expressions.Piotr Sikora2013-05-02
| | | | | | | | | Previously, input pattern was kept only for regular expressions with named captures, which resulted in error log entries without input pattern for PCRE errors that occured while processing regular expressions without them. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Proxy: $proxy_internal_body_length fixed.Maxim Dounin2013-05-11
| | | | | | | | The $proxy_internal_body_length value might change during request lifetime, notably if proxy_set_body used, and use of a cached value might result in incorrect upstream requests. Patch by Lanshun Zhou.
* Mp4: indentation and style, no functional changes.Maxim Dounin2013-05-11
|
* Added r->limit_rate_after.Maxim Dounin2013-05-11
| | | | | | As of now, it allows to better control bandwidth limiting from additional modules. It is also expected to be used to add variables support to the limit_rate_after directive.
* Fixed build with --with-mail_ssl_module.Maxim Dounin2013-05-11
| | | | | | | | | If nginx was compiled without --with-http_ssl_module, but with some other module which uses OpenSSL (e.g. --with-mail_ssl_module), insufficient preprocessor check resulted in build failure. The problem was introduced by e0a3714a36f8 (1.3.14). Reported by Roman Arutyunyan.
* Request body: fixed r->count increment on allocation failure.Maxim Dounin2013-05-11
|
* Perl: extra "return" removed.Maxim Dounin2013-05-11
|
* Version bump.Maxim Dounin2013-05-11
|
* Fixed chunk size parsing.Maxim Dounin2013-05-06
|
* Proxy: allocate $proxy_internal_body_length from request pool.Ruslan Ermilov2013-04-29
|
* Version bump.Ruslan Ermilov2013-04-29
|
* Version bump.Maxim Dounin2013-04-24
|
* SPDY: set NGX_TCP_NODELAY_DISABLED for fake connections.Valentin Bartenev2013-04-23
| | | | | | This is to avoid setting the TCP_NODELAY flag on SPDY socket in ngx_http_upstream_send_response(). The latter works per request, but in SPDY case it might affect other streams in connection.
* Perl: request body handling fixed.Maxim Dounin2013-04-23
| | | | | | | As of 1.3.9, chunked request body may be available with r->headers_in.content_length_n <= 0. Additionally, request body may be in multiple buffers even if r->request_body_in_single_buf was requested.
* Configure: fixed perl Makefile generation (ticket #334).Maxim Dounin2013-04-19
| | | | | | | | | | | | | Dependancy tracking introduced in r5169 were not handled absolute path names properly. Absolute names might appear in CORE_DEPS if --with-openssl or --with-pcre configure arguments are used to build OpenSSL/PCRE libraries. Additionally, revert part of r5169 to set NGX_INCS from Makefile variables. Makefile variables have $ngx_include_opt in them, which might result in wrong include paths being used. As a side effect, this also restores build with --with-http_perl_module and --without-http at the same time.
* Version bump.Ruslan Ermilov2013-04-18
|