For the sake of case/switch code readability, 'fall through'
comments added.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4547 73f98a42-aea0-e011-b76d-00259023448c
Minor ngx_http_headers_filter_module.c code cleanup.

- Removed "hash" element from ngx_http_header_val_t which was always 1.
- Replaced NGX_HTTP_EXPIRES_* with ngx_http_expires_t enum type.
- Added prototype for ngx_http_add_header()
- Simplified ngx_http_set_last_modified().


git-svn-id: svn://svn.nginx.org/nginx/trunk@4548 73f98a42-aea0-e011-b76d-00259023448c
If we inserted "Last-Modified" in r->headers_out.headers, don't
forget to set the r->headers_out.last_modified pointer to it.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4549 73f98a42-aea0-e011-b76d-00259023448c
worker_cpu_affinity: cleaned up Linux implementation, added FreeBSD support.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4550 73f98a42-aea0-e011-b76d-00259023448c
The addition of $tcpinfo_* variables has broken the build on Linux
systems with glibc versions prior to 2.7.  Fixed this by checking
the existence of "struct tcp_info" members during configuration.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4551 73f98a42-aea0-e011-b76d-00259023448c
Removed safari from keepalive_disable default.

The bug in question is likely already fixed (though unfortunately we have
no information available as Apple's bugtracker isn't open), and the
workaround seems to be too pessimistic for modern versions of Safari
as well as other webkit-based browsers pretending to be Safari.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4552 73f98a42-aea0-e011-b76d-00259023448c
Restricted keepalive_disable safari to OS X only.

The problem doesn't affect non-Apple systems for sure, and many pretend
to be Safari now.

Prodded by Piotr Sikora.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4553 73f98a42-aea0-e011-b76d-00259023448c
Fixed off-by-one in xslt parameter parsing.

The problem was introduced in 0.7.44 (r2589) during conversion to complex
values.  Previously string.len included space for terminating NUL, but
with complex values it doesn't.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4554 73f98a42-aea0-e011-b76d-00259023448c
Added xslt_param and xslt_string_param directives.

Based on patch by Samuel Behan.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4555 73f98a42-aea0-e011-b76d-00259023448c
Win32: added missing call to srand().

Found by Veracode.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4556 73f98a42-aea0-e011-b76d-00259023448c
Resolver: added missing sanity checking when creating name queries.

Found by Veracode.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4557 73f98a42-aea0-e011-b76d-00259023448c
Added explicit include of time.h.

Most of the systems have it included due to namespace pollution, but
relying on this is a bad idea.  Explicit include is required for at least
Debian GNU/Hurd.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4558 73f98a42-aea0-e011-b76d-00259023448c
Fixed unconditional MAX_PATH usage (ticket #22).

POSIX doesn't require it to be defined, and Debian GNU/Hurd doesn't define
it.  Note that if there is no MAX_PATH defined we have to use realpath()
with NULL argument and free() the result.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4559 73f98a42-aea0-e011-b76d-00259023448c
Fixed more gcc46 warnings in configure tests.

Steps to reproduce:

./configure --with-cc="gcc46" --with-cc-opt="-Wall -Werror -O2"


git-svn-id: svn://svn.nginx.org/nginx/trunk@4560 73f98a42-aea0-e011-b76d-00259023448c
Xslt: parser options now set with xmlCtxtUseOptions().

Note that "ctxt->loadsubset = 1" previously used isn't really correct as
ctxt->loadsubset is a bitfield now.  The use of xmlCtxtUseOptions() with
XML_PARSE_DTDLOAD is believed to be a better way to do the same thing.

Patch by Laurence Rowe.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4561 73f98a42-aea0-e011-b76d-00259023448c
Fixed calculation of range boundaries.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4562 73f98a42-aea0-e011-b76d-00259023448c
Replaced ngx_http_realip_from_t with ngx_in_cidr_t.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4563 73f98a42-aea0-e011-b76d-00259023448c
Configure: fixed msghdr.msg_control test on 64bit platforms.

Broken by r4560.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4564 73f98a42-aea0-e011-b76d-00259023448c
Fixed win32 build after realpath changes in r4559.


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


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