Changed ngx_log_debugN() macros to verify the number of arguments
when built with debugging.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4398 73f98a42-aea0-e011-b76d-00259023448c
Fixed: proxy_redirect with regex might broke Refresh header.

The problem was localized in ngx_http_proxy_rewrite_redirect_regex() handler
function which did not take into account prefix when overwriting header value.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4399 73f98a42-aea0-e011-b76d-00259023448c
Fixed limit_req burst/nodelay inheritance (ticket #76).

The problem was introduced in r4381 (1.1.12).


git-svn-id: svn://svn.nginx.org/nginx/trunk@4400 73f98a42-aea0-e011-b76d-00259023448c
Added support for TLSv1.1, TLSv1.2 in ssl_protocols directive.

Support for TLSv1.1 and TLSv1.2 protocols was introduced in OpenSSL 1.0.1
(-beta1 was recently released).  This change makes it possible to disable
these protocols and/or enable them without other protocols.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4401 73f98a42-aea0-e011-b76d-00259023448c
Fixed proxy_cache_use_stale in "no live upstreams" case.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4402 73f98a42-aea0-e011-b76d-00259023448c
Fixed handling of mp4 above 2G and 32bit offsets (ticket #84).


git-svn-id: svn://svn.nginx.org/nginx/trunk@4403 73f98a42-aea0-e011-b76d-00259023448c
Fixed sched_setaffinity(2) to correctly pass size.

Second argument (cpusetsize) is size in bytes, not in bits.  Previously
used constant 32 resulted in reading of uninitialized memory and caused
EINVAL to be returned on some Linux kernels.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4404 73f98a42-aea0-e011-b76d-00259023448c
Fixed division by zero exception in ngx_hash_init().

The ngx_hash_init() function did not expect call with zero elements count,
which caused FPE error on configs with an empty "types" block in http context
and "types_hash_max_size" > 10000.

Example configuration to reproduce:

  events { }

  http {
          types_hash_max_size 10001;
          types {}
          server {}
  }



git-svn-id: svn://svn.nginx.org/nginx/trunk@4405 73f98a42-aea0-e011-b76d-00259023448c
2012 year.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4406 73f98a42-aea0-e011-b76d-00259023448c
Updated OpenSSL version used for win32 build.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4407 73f98a42-aea0-e011-b76d-00259023448c
nginx-1.1.13-RELEASE


git-svn-id: svn://svn.nginx.org/nginx/trunk@4408 73f98a42-aea0-e011-b76d-00259023448c
Fixed spelling.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4410 73f98a42-aea0-e011-b76d-00259023448c
Version bump.

git-svn-id: svn://svn.nginx.org/nginx/trunk@4411 73f98a42-aea0-e011-b76d-00259023448c
Version bump.

git-svn-id: svn://svn.nginx.org/nginx/trunk@4412 73f98a42-aea0-e011-b76d-00259023448c
Copyright updated.

git-svn-id: svn://svn.nginx.org/nginx/trunk@4413 73f98a42-aea0-e011-b76d-00259023448c
Fixed grammar in PCRE JIT error log message.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4414 73f98a42-aea0-e011-b76d-00259023448c
Removed ENGINE_load_builtin_engines() call.

It's already called by OPENSSL_config().  Calling it again causes some
openssl engines (notably GOST) to corrupt memory, as they don't expect
to be created more than once.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4415 73f98a42-aea0-e011-b76d-00259023448c
Fixed AIO error handling on FreeBSD.

The aio_return() must be called regardless of the error returned by
aio_error().  Not calling it resulted in various problems up to segmentation
faults (as AIO events are level-triggered and were reported again and again).

Additionally, in "aio sendfile" case r->blocked was incremented in case of
error returned from ngx_file_aio_read(), thus causing request hangs.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4416 73f98a42-aea0-e011-b76d-00259023448c
Limit req: error messages fixed.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4417 73f98a42-aea0-e011-b76d-00259023448c
Limit req: improved error handling when parsing "zone" parameter of
"limit_req_zone" directive; minimum size of zone is increased.

Previously an unsigned variable was used to keep the return value of
ngx_parse_size() function, which led to an incorrect zone size if NGX_ERROR
was returned.

The new code has been taken from the "limit_conn_zone" directive.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4418 73f98a42-aea0-e011-b76d-00259023448c