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
Corrected spelling of error message (ticket #136).


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


git-svn-id: svn://svn.nginx.org/nginx/trunk@4569 73f98a42-aea0-e011-b76d-00259023448c
Upstream: reject upstreams without normal servers.

Such upstreams cause CPU hog later in the code as number of peers isn't
expected to be 0.  Currently this may happen either if there are only backup
servers defined in an upstream block, or if server with ipv6 address used
in an upstream block.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4570 73f98a42-aea0-e011-b76d-00259023448c
Win32: fixed memory allocation for shmem name (ticket #134).


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