Properly initialize "struct in6_addr" with zeroes.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4984 73f98a42-aea0-e011-b76d-00259023448c
Access log: fixed redundant buffer reallocation.

Previously a new buffer was allocated for every "access_log" directive with the
same file path and "buffer=" parameters, while only one buffer per file is used.



git-svn-id: svn://svn.nginx.org/nginx/trunk@4985 73f98a42-aea0-e011-b76d-00259023448c
Reopening log files code moved to a separate function.

The code refactored in a way to call custom handler that can do appropriate
cleanup work (if any), like flushing buffers, finishing compress streams,
finalizing connections to log daemon, etc..



git-svn-id: svn://svn.nginx.org/nginx/trunk@4986 73f98a42-aea0-e011-b76d-00259023448c
Access log: the "flush" parameter of the "access_log" directive.



git-svn-id: svn://svn.nginx.org/nginx/trunk@4987 73f98a42-aea0-e011-b76d-00259023448c
Configure: added the NGX_ZLIB define.

This was introduced for conditional compilation of the code that requires
the zlib library.



git-svn-id: svn://svn.nginx.org/nginx/trunk@4988 73f98a42-aea0-e011-b76d-00259023448c
Access log: the "gzip" parameter of the "access_log" directive.

Note: this requires zlib version 1.2.0.4 or above to work.



git-svn-id: svn://svn.nginx.org/nginx/trunk@4989 73f98a42-aea0-e011-b76d-00259023448c
Trailing whitespace fix.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4990 73f98a42-aea0-e011-b76d-00259023448c
Fixed HEAD requests handling when proxying is used (closes #261).


git-svn-id: svn://svn.nginx.org/nginx/trunk@4991 73f98a42-aea0-e011-b76d-00259023448c
Upstream: fixed state resetting when switching to backup servers.

Based on patch by Thomas Chen (ticket #257).



git-svn-id: svn://svn.nginx.org/nginx/trunk@4992 73f98a42-aea0-e011-b76d-00259023448c
Geo: IPv6 support.

The "ranges" mode is still limited to IPv4 only.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4993 73f98a42-aea0-e011-b76d-00259023448c
Geo: properly initialize ngx_cidr_t when dealing with "default".


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


git-svn-id: svn://svn.nginx.org/nginx/trunk@4995 73f98a42-aea0-e011-b76d-00259023448c
Geo: made "default" affect both IPv4 and IPv6 when using prefixes.

Previously, "default" was equivalent to specifying 0.0.0.0/0, now
it's equivalent to specifying both 0.0.0.0/0 and ::/0 (if support
for IPv6 is enabled) with the same value.


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


git-svn-id: svn://svn.nginx.org/nginx/trunk@4998 73f98a42-aea0-e011-b76d-00259023448c
Upstream keepalive: detect duplicate "keepalive" directive.

A failure to detect duplicate "keepalive" directive resulted in
stack exhaustion.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4999 73f98a42-aea0-e011-b76d-00259023448c
Geo: improved code readability.


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


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