Version bump.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4683 73f98a42-aea0-e011-b76d-00259023448c
Fixed crash in ngx_resolver_cleanup_tree().

If sending a DNS request fails with an error (e.g., when mistakenly trying
to send it to a local IP broadcast), such a request is not deleted if there
are clients waiting on it.  However, it was still erroneously removed from
the queue.  Later ngx_resolver_cleanup_tree() attempted to remove it from
the queue again that resulted in a NULL pointer dereference.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4684 73f98a42-aea0-e011-b76d-00259023448c
When "resolver" is configured with a domain name, only the first
resolved address was used.  Now all addresses will be used.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4685 73f98a42-aea0-e011-b76d-00259023448c
New core variable: $status.

Contains response status code as a 3-digit integer
(with leading zeroes if necessary), or one of the following values:

    000 - response status code has not yet been assigned
    009 - HTTP/0.9 request is being processed


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


git-svn-id: svn://svn.nginx.org/nginx/trunk@4687 73f98a42-aea0-e011-b76d-00259023448c
Mp4: fixed non-keyframe seeks in some cases (ticket #175).

Number of entries in stsc atom was wrong if we've added an entry to
split a chunk.

Additionally, there is no need to add an entry if we are going to split
last chunk in an entry, it's enough to update the entry we already have.
Previously new entry was added and old one was left as is, resulting in
incorrect entry with zero chunks which might confuse some software.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4688 73f98a42-aea0-e011-b76d-00259023448c
Mp4: fixed streaming if moov atom is at buffer edge.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4689 73f98a42-aea0-e011-b76d-00259023448c
Fixed handling of conflicting wildcard server names.

With previous code wildcard names were added to hash even if conflict
was detected.  This resulted in identical names in hash and segfault
later in ngx_hash_wildcard_init().


git-svn-id: svn://svn.nginx.org/nginx/trunk@4690 73f98a42-aea0-e011-b76d-00259023448c
Changed default alignment to 16.

This fixes alignment problems observerd on ARMs, and likely also needed
for MIPSes.  Unless we know alignment is not required just assume we
need 16, which appears to be safe default for all architectures.

See here for details:
http://mailman.nginx.org/pipermail/nginx/2012-June/034139.html


git-svn-id: svn://svn.nginx.org/nginx/trunk@4691 73f98a42-aea0-e011-b76d-00259023448c
Fixed segfault with poll and resolver used.

Poll event method needs ngx_cycle->files to work, and use of ngx_exit_cycle
without files set caused null pointer dereference in resolver's cleanup
on udp socket close.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4692 73f98a42-aea0-e011-b76d-00259023448c
Fixed "sendmsg() failed" alerts on HP-UX.

HP-UX needs _HPUX_ALT_XOPEN_SOCKET_API to be defined to be able to
use various POSIX versions of networking functions.  Notably sendmsg()
resulted in "sendmsg() failed (9: Bad file number)" alerts without it.

See xopen_networking(7) for more details.


git-svn-id: svn://svn.nginx.org/nginx/trunk@4693 73f98a42-aea0-e011-b76d-00259023448c
Fixed return type of ngx_strerror_init().


git-svn-id: svn://svn.nginx.org/nginx/trunk@4694 73f98a42-aea0-e011-b76d-00259023448c
Upstream keepalive: "single" parameter deprecated.

The original idea was to optimize edge cases in case of interchangeable
backends, i.e. don't establish a new connection if we have any one
cached.  This causes more harm than good though, as it screws up
underlying balancer's idea about backends used and may result in
various unexpected problems.


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