]> git.kaiwu.me - nginx.git/log
nginx.git
14 years agonginx-1.1.11-RELEASE release-1.1.11
Maxim Dounin [Mon, 12 Dec 2011 14:17:49 +0000 (14:17 +0000)]
nginx-1.1.11-RELEASE

14 years agoFixed RELEASE target again.
Maxim Dounin [Mon, 12 Dec 2011 12:39:19 +0000 (12:39 +0000)]
Fixed RELEASE target again.

14 years agoFixed RELEASE target to correctly call "release" one.
Maxim Dounin [Mon, 12 Dec 2011 11:00:17 +0000 (11:00 +0000)]
Fixed RELEASE target to correctly call "release" one.

14 years agoCache: only complain on long locked entries.
Maxim Dounin [Mon, 12 Dec 2011 10:49:14 +0000 (10:49 +0000)]
Cache: only complain on long locked entries.

There have been multiple reports of cases where a real locked entry was
removed, resulting in a segmentation fault later in a worker which locked
the entry.  It looks like default inactive timeout isn't enough in real
life.

For now just ignore such locked entries, and move them to the top of the
inactive queue to allow processing of other entries.

14 years agoCache: handling of cache files with long headers.
Maxim Dounin [Mon, 12 Dec 2011 10:47:48 +0000 (10:47 +0000)]
Cache: handling of cache files with long headers.

There are two possible situations which can lead to this: response was
cached with bigger proxy_buffer_size value (and nginx was restared since
then, i.e. shared memory zone content was lost), or due to the race in
the cache update code (see [1]) we've end up with fcn->body_start from
a different response stored in shared memory zone.

[1] http://mailman.nginx.org/pipermail/nginx-devel/2011-September/001287.html

14 years agoCache: obsolete code removed.
Maxim Dounin [Mon, 12 Dec 2011 10:46:43 +0000 (10:46 +0000)]
Cache: obsolete code removed.

The ngx_http_cache() and ngx_http_no_cache_set_slot() functions were replaced
by ngx_http_test_predicates() and ngx_http_set_predicate_slot() in 0.8.46 and
no longer used since then.

14 years agoRenamed some constants to improve readability, no functional changes.
Ruslan Ermilov [Mon, 12 Dec 2011 10:45:05 +0000 (10:45 +0000)]
Renamed some constants to improve readability, no functional changes.

14 years agoProxy: added variables and regexp support to the first parameter of
Valentin Bartenev [Mon, 12 Dec 2011 09:02:29 +0000 (09:02 +0000)]
Proxy: added variables and regexp support to the first parameter of
the "proxy_redirect" directive.

14 years agoMicrooptimization of sendfile(2) usage under FreeBSD.
Maxim Dounin [Sun, 11 Dec 2011 16:30:42 +0000 (16:30 +0000)]
Microoptimization of sendfile(2) usage under FreeBSD.

FreeBSD kernel checks headers/trailers pointer against NULL, not
corresponding count.  Passing NULL if there are no headers/trailers
helps to avoid unneeded work in kernel, as well as unexpected 0 bytes
GIO in traces.

14 years agoFixed: some of $sent_http_* variables may contain header entries that actually
Valentin Bartenev [Fri, 9 Dec 2011 16:17:12 +0000 (16:17 +0000)]
Fixed: some of $sent_http_* variables may contain header entries that actually
haven't been sent to a client.

The ngx_http_variable_headers() and ngx_http_variable_unknown_header() functions
did not ignore response header entries with zero "hash" field.

Thanks to Yichun Zhang (agentzh).

14 years agoAdded HTTPS param with Apache-like behaviour to fastcgi/scgi/uwsgi_params (fixes...
Valentin Bartenev [Fri, 9 Dec 2011 15:38:26 +0000 (15:38 +0000)]
Added HTTPS param with Apache-like behaviour to fastcgi/scgi/uwsgi_params (fixes #38).

14 years agoAdded the $https variable.
Valentin Bartenev [Fri, 9 Dec 2011 14:38:11 +0000 (14:38 +0000)]
Added the $https variable.

14 years agoSCGI: added "if_not_empty" flag support to the "scgi_param" directive.
Valentin Bartenev [Fri, 9 Dec 2011 14:03:06 +0000 (14:03 +0000)]
SCGI: added "if_not_empty" flag support to the "scgi_param" directive.

14 years agouwsgi: added "if_not_empty" flag support to the "uwsgi_param" directive.
Valentin Bartenev [Fri, 9 Dec 2011 13:47:04 +0000 (13:47 +0000)]
uwsgi: added "if_not_empty" flag support to the "uwsgi_param" directive.

14 years agoFastCGI: added "if_not_empty" flag support to the "fastcgi_param" directive.
Valentin Bartenev [Fri, 9 Dec 2011 13:32:51 +0000 (13:32 +0000)]
FastCGI: added "if_not_empty" flag support to the "fastcgi_param" directive.

14 years agoAdded the ngx_http_upstream_param_set_slot().
Valentin Bartenev [Fri, 9 Dec 2011 13:19:57 +0000 (13:19 +0000)]
Added the ngx_http_upstream_param_set_slot().

14 years ago- Improved error message when parsing of the "buffer" parameter of the
Ruslan Ermilov [Tue, 6 Dec 2011 21:07:10 +0000 (21:07 +0000)]
- Improved error message when parsing of the "buffer" parameter of the
  "access_log" directive fails.

- Added a warning if "log_format" is used in contexts other than "http".

14 years agoRemoved unused function ngx_regex_capture_count().
Valentin Bartenev [Tue, 6 Dec 2011 15:49:40 +0000 (15:49 +0000)]
Removed unused function ngx_regex_capture_count().
The function has been unused since r3326.

14 years agoFix for read_head with try_files and open_file_cache.
Maxim Dounin [Tue, 6 Dec 2011 13:23:37 +0000 (13:23 +0000)]
Fix for read_head with try_files and open_file_cache.

The of.read_ahead wasn't set in try_files code path, causing read_ahead
directive to be a nop if try_files and open_file_cache were used.

14 years agoVersion bump.
Maxim Dounin [Tue, 6 Dec 2011 13:22:32 +0000 (13:22 +0000)]
Version bump.

14 years agoAdded the "so_keepalive=" parameter to the "listen" directive.
Valentin Bartenev [Mon, 5 Dec 2011 08:06:15 +0000 (08:06 +0000)]
Added the "so_keepalive=" parameter to the "listen" directive.
The "so_keepalive" directive in mail module was deprecated.

Thanks to Vsevolod Stakhov for initial work.

14 years agorelease-1.1.10 tag
Maxim Dounin [Wed, 30 Nov 2011 10:01:11 +0000 (10:01 +0000)]
release-1.1.10 tag

14 years agonginx-1.1.10-RELEASE release-1.1.10
Maxim Dounin [Wed, 30 Nov 2011 10:00:50 +0000 (10:00 +0000)]
nginx-1.1.10-RELEASE

14 years agoCompute the repository root from the checkout.
Ruslan Ermilov [Wed, 30 Nov 2011 07:36:09 +0000 (07:36 +0000)]
Compute the repository root from the checkout.

14 years agoFixed AIO on Linux, broken in r4306.
Maxim Dounin [Tue, 29 Nov 2011 17:27:13 +0000 (17:27 +0000)]
Fixed AIO on Linux, broken in r4306.

Events from eventfd do not have c->write set, and the stale event
check added in r4306 causes null pointer dereference.

14 years agoVersion bump.
Maxim Dounin [Tue, 29 Nov 2011 17:25:31 +0000 (17:25 +0000)]
Version bump.

14 years agorelease-1.1.9 tag
Maxim Dounin [Mon, 28 Nov 2011 15:15:14 +0000 (15:15 +0000)]
release-1.1.9 tag

14 years agonginx-1.1.9-RELEASE release-1.1.9
Maxim Dounin [Mon, 28 Nov 2011 15:02:38 +0000 (15:02 +0000)]
nginx-1.1.9-RELEASE

14 years agoAdded (void) as we intentionally ignore returned values.
Maxim Dounin [Mon, 28 Nov 2011 11:01:42 +0000 (11:01 +0000)]
Added (void) as we intentionally ignore returned values.

Requested by Igor Sysoev.

14 years agoAllowed add_header for proxied 206 replies.
Maxim Dounin [Mon, 28 Nov 2011 10:00:47 +0000 (10:00 +0000)]
Allowed add_header for proxied 206 replies.

It was working for nginx's own 206 replies as they are seen as 200 in the
headers filter module (range filter goes later in the headers filter chain),
but not for proxied replies.

14 years agoAdded support for IP-literal in the Host header and request line (ticket #1).
Valentin Bartenev [Mon, 28 Nov 2011 09:15:33 +0000 (09:15 +0000)]
Added support for IP-literal in the Host header and request line (ticket #1).

Additional parsing logic added to correctly handle RFC 3986 compliant IPv6 and
IPvFuture characters enclosed in square brackets.

The host validation was completely rewritten. The behavior for non IP literals
was changed in a more proper and safer way:

 - Host part is now delimited either by the first colon or by the end of string
   if there's no colon. Previously the last colon was used as delimiter which
   allowed substitution of a port number in the $host variable.
   (e.g. Host: 127.0.0.1:9000:80)

 - Fixed stripping of the ending dot in the Host header when the host was also
   followed by a port number.
   (e.g. Host: nginx.com.:80)

 - Fixed upper case characters detection. Previously it was broken which led to
   wasting memory and CPU.

14 years agoAdded escaping of double quotes in ngx_escape_html().
Maxim Dounin [Fri, 25 Nov 2011 16:36:02 +0000 (16:36 +0000)]
Added escaping of double quotes in ngx_escape_html().

Patch by Zaur Abasmirzoev.

14 years agoUnlock of shared memory zones on process crash.
Maxim Dounin [Wed, 23 Nov 2011 14:09:19 +0000 (14:09 +0000)]
Unlock of shared memory zones on process crash.

If process exited abnormally while holding lock on some shared memory zone -
unlock it.  It may be not safe thing to do (as crash with lock held may
result in corrupted shared memory structure, and other processes will
subsequently crash while trying to access shared data), therefore complain
loudly if unlock succeeds.

14 years agoFixed build without atomic operations.
Maxim Dounin [Wed, 23 Nov 2011 14:07:06 +0000 (14:07 +0000)]
Fixed build without atomic operations.

14 years agoAdded shmtx interface to forcibly unlock mutexes.
Maxim Dounin [Wed, 23 Nov 2011 13:55:38 +0000 (13:55 +0000)]
Added shmtx interface to forcibly unlock mutexes.

It is currently used from master process on abnormal worker termination to
unlock accept mutex (unlocking of accept mutex was broken in 1.0.2).  It is
expected to be used in the future to unlock other mutexes as well.

Shared mutex code was rewritten to make this possible in a safe way, i.e.
with a check if lock was actually held by the exited process.  We again use
pid to lock mutex, and use separate atomic variable for a count of processes
waiting in sem_wait().

14 years agoFixed "rotate" to always work when combined with "resize/crop".
Ruslan Ermilov [Wed, 23 Nov 2011 10:22:44 +0000 (10:22 +0000)]
Fixed "rotate" to always work when combined with "resize/crop".

14 years agoCosmetics.
Ruslan Ermilov [Wed, 23 Nov 2011 10:16:30 +0000 (10:16 +0000)]
Cosmetics.

14 years agoFix of mp4 module seeking.
Igor Sysoev [Wed, 23 Nov 2011 07:22:15 +0000 (07:22 +0000)]
Fix of mp4 module seeking.

14 years agoProtection from stale write events in epoll.
Maxim Dounin [Tue, 22 Nov 2011 17:02:21 +0000 (17:02 +0000)]
Protection from stale write events in epoll.

Stale write event may happen if epoll_wait() reported both read and write
events, and processing of the read event closed descriptor.

Patch by Yichun Zhang (agentzh).

14 years agoFixed segfault on ssl servers without cert with SNI (ticket #54).
Maxim Dounin [Tue, 22 Nov 2011 16:27:45 +0000 (16:27 +0000)]
Fixed segfault on ssl servers without cert with SNI (ticket #54).

Non-default servers may not have ssl context created if there are no
certificate defined.  Make sure to check if ssl context present before
using it.

14 years agoMade it possible to build/install from the SVN checkout.
Ruslan Ermilov [Tue, 22 Nov 2011 13:26:44 +0000 (13:26 +0000)]
Made it possible to build/install from the SVN checkout.

14 years agoo AIX 7 defines sys_nerr in errno.h, therefore <errno.h> included
Maxim Konovalov [Mon, 21 Nov 2011 11:51:41 +0000 (11:51 +0000)]
o AIX 7 defines sys_nerr in errno.h, therefore <errno.h> included
in the sys_nerr test.

o When sys_nerr and _sys_nerr are missed on a particular platform
and our euristic for a maximum errno detection applied always
print the maximum errno number we reached instead of printing void.[*]

* patch from Maxim Dounin

This commit makes possible to build nginx on AIX 7.1.

14 years agosvgz extension for compressed SVG added (close #56).
Maxim Konovalov [Mon, 21 Nov 2011 09:20:50 +0000 (09:20 +0000)]
svgz extension for compressed SVG added (close #56).

14 years agoFixed "keepalive_disable".
Ruslan Ermilov [Mon, 21 Nov 2011 07:31:59 +0000 (07:31 +0000)]
Fixed "keepalive_disable".

Patch by Alexander Usov.  The bug has been introduced in r4267.

14 years agoFreeBSD 10-current has recently gotten POSIX_FADV_* macros.
Maxim Konovalov [Fri, 18 Nov 2011 18:42:00 +0000 (18:42 +0000)]
FreeBSD 10-current has recently gotten POSIX_FADV_* macros.
A fix for the broken build applied.

Patch from Igor Sysoev.

14 years agoUpstream: don't cache unfinished responses.
Maxim Dounin [Fri, 18 Nov 2011 15:09:08 +0000 (15:09 +0000)]
Upstream: don't cache unfinished responses.

Check if received data length match Content-Length header (if present),
don't cache response if no match found.  This prevents caching of corrupted
response in case of premature connection close by upstream.

14 years agoFixed flv header to match specification.
Maxim Dounin [Fri, 18 Nov 2011 14:41:01 +0000 (14:41 +0000)]
Fixed flv header to match specification.

Used "\x5" in 5th byte to claim presence of both audio and video.  Used
previous tag size 0 in the beginning of the flv body (bytes 10 .. 13) as
required by specification (see http://www.adobe.com/devnet/f4v.html).

Patch by Piotr Sikora.

14 years agoSilenced a warning for some compilers.
Ruslan Ermilov [Wed, 16 Nov 2011 13:27:33 +0000 (13:27 +0000)]
Silenced a warning for some compilers.

14 years agoNow nginx uses TTL of a DNS response when calculating cache validity.
Ruslan Ermilov [Wed, 16 Nov 2011 13:11:39 +0000 (13:11 +0000)]
Now nginx uses TTL of a DNS response when calculating cache validity.

Previously it used a hardcoded value of 300 seconds.  Also added the
"valid=" parameter to the "resolver" directive that can be used to
override the cache validity time.

Patch by Kirill A. Korinskiy with minor changes.

14 years agoFixed incorrect counting the length of headers in a SCGI request.
Valentin Bartenev [Wed, 16 Nov 2011 12:51:27 +0000 (12:51 +0000)]
Fixed incorrect counting the length of headers in a SCGI request.

14 years agoFixed handling of SIGWINCH/NOACCEPT signal.
Maxim Dounin [Tue, 15 Nov 2011 20:35:41 +0000 (20:35 +0000)]
Fixed handling of SIGWINCH/NOACCEPT signal.

After first upgrade it was ignored since r4020 (1.1.1, 1.0.9) as
ngx_daemonized wasn't set.

14 years agoVersion bump.
Maxim Dounin [Tue, 15 Nov 2011 20:33:37 +0000 (20:33 +0000)]
Version bump.

14 years agorelease-1.1.8 tag
Igor Sysoev [Mon, 14 Nov 2011 15:38:02 +0000 (15:38 +0000)]
release-1.1.8 tag

14 years agonginx-1.1.8-RELEASE release-1.1.8
Igor Sysoev [Mon, 14 Nov 2011 15:37:54 +0000 (15:37 +0000)]
nginx-1.1.8-RELEASE

14 years agoIntroduction of simple ngx_write_stderr() instead of ngx_log_stderr()
Igor Sysoev [Mon, 14 Nov 2011 14:59:00 +0000 (14:59 +0000)]
Introduction of simple ngx_write_stderr() instead of ngx_log_stderr()
for output of ./configure options, etc., since ngx_log_stderr() output
length is limited by 2048 characters defined as NGX_MAX_ERROR_STR.

14 years agoFix of "Content-Length" header of MP4 response if start argument was used.
Igor Sysoev [Mon, 14 Nov 2011 14:42:48 +0000 (14:42 +0000)]
Fix of "Content-Length" header of MP4 response if start argument was used.

Patch by Piotr Sikora.

14 years agoAdded image/webp and video/webm MIME types.
Valentin Bartenev [Mon, 14 Nov 2011 14:16:51 +0000 (14:16 +0000)]
Added image/webp and video/webm MIME types.

14 years agoRenamed ngx_http_limit_zone_module to ngx_http_limit_conn_module.
Valentin Bartenev [Mon, 14 Nov 2011 14:04:42 +0000 (14:04 +0000)]
Renamed ngx_http_limit_zone_module to ngx_http_limit_conn_module.

14 years agoReverted incorrect change in internal md5 (part of r3928).
Maxim Dounin [Mon, 14 Nov 2011 13:38:02 +0000 (13:38 +0000)]
Reverted incorrect change in internal md5 (part of r3928).

14 years agoFixed fastcgi/scgi/uwsgi_param inheritance.
Maxim Dounin [Mon, 14 Nov 2011 13:26:18 +0000 (13:26 +0000)]
Fixed fastcgi/scgi/uwsgi_param inheritance.

The following problems were fixed:

1. Directive fastcgi_cache affected headers sent to backends in unrelated
   servers / locations (see ticket #45).

2. If-Unmodified-Since, If-Match and If-Range headers were sent to backends
   if fastcgi_cache was used.

3. Cache-related headers were sent to backends if there were no fastcgi_param
   directives and fastcgi_cache was used at server level.

14 years agoSeparate functions to merge fastcgi/scgi/uwsgi params.
Maxim Dounin [Mon, 14 Nov 2011 13:24:43 +0000 (13:24 +0000)]
Separate functions to merge fastcgi/scgi/uwsgi params.

No functional changes.

14 years agoFixed Upgrade header clearing with proxy_cache.
Maxim Dounin [Mon, 14 Nov 2011 13:21:10 +0000 (13:21 +0000)]
Fixed Upgrade header clearing with proxy_cache.

This was missed in proxy HTTP/1.1 support commit (r4127).

14 years agoFixed proxy_set_header inheritance with proxy_set_body.
Maxim Dounin [Mon, 14 Nov 2011 13:19:56 +0000 (13:19 +0000)]
Fixed proxy_set_header inheritance with proxy_set_body.

14 years agoFixed proxy_set_header inheritance with proxy_cache (ticket #45).
Maxim Dounin [Mon, 14 Nov 2011 13:18:15 +0000 (13:18 +0000)]
Fixed proxy_set_header inheritance with proxy_cache (ticket #45).

Headers cleared with cache enabled (If-Modified-Since etc.) might be cleared
in unrelated servers/locations without proxy_cache enabled if proxy_cache was
used in some server/location.

Example config which triggered the problem:

    proxy_set_header X-Test "test";
    server { location /1 { proxy_cache name; proxy_pass ... } }
    server { location /2 { proxy_pass ... } }

Another one:

    server {
        proxy_cache name;
        location /1 { proxy_pass ... }
        location /2 { proxy_cache off; proxy_pass ... }
    }

In both cases If-Modified-Since header wasn't sent to backend in location /2.

Fix is to not modify conf->headers_source, but instead merge user-supplied
headers from conf->headers_source and default headers (either cache or not)
into separate headers_merged array.

14 years agoFixed NGX_CONF_TAKE1/NGX_CONF_FLAG misuse.
Sergey Budnevitch [Mon, 14 Nov 2011 09:12:15 +0000 (09:12 +0000)]
Fixed NGX_CONF_TAKE1/NGX_CONF_FLAG misuse.

14 years agoLimit zone: added the "limit_conn_zone" directive.
Valentin Bartenev [Thu, 10 Nov 2011 16:25:08 +0000 (16:25 +0000)]
Limit zone: added the "limit_conn_zone" directive.

It supersedes old "limit_zone" directive (deprecated accordingly) and uses
syntax consistent with the "limit_req_zone" directive.

14 years agoLimit zone: support for multiple "limit_conn" limits.
Valentin Bartenev [Thu, 10 Nov 2011 16:08:13 +0000 (16:08 +0000)]
Limit zone: support for multiple "limit_conn" limits.

14 years agoLimit zone: rbtree lookup moved to a separate function.
Valentin Bartenev [Thu, 10 Nov 2011 15:51:55 +0000 (15:51 +0000)]
Limit zone: rbtree lookup moved to a separate function.

No functional changes.

14 years agoChanged error message to be more appropriate in the imaginary
Ruslan Ermilov [Thu, 10 Nov 2011 09:13:09 +0000 (09:13 +0000)]
Changed error message to be more appropriate in the imaginary
"open_file_cache max=0" case.

14 years agoBelatedly fixed language in 1.1.7 relnotes.
Ruslan Ermilov [Wed, 9 Nov 2011 14:50:33 +0000 (14:50 +0000)]
Belatedly fixed language in 1.1.7 relnotes.

14 years agoFixed compression pointer processing in DNS response greater than 255 bytes.
Igor Sysoev [Wed, 9 Nov 2011 13:54:07 +0000 (13:54 +0000)]
Fixed compression pointer processing in DNS response greater than 255 bytes.

Thanks to Ben Hawkes.

14 years agoFix of "keepalive_disable" directive.
Igor Sysoev [Tue, 8 Nov 2011 13:48:23 +0000 (13:48 +0000)]
Fix of "keepalive_disable" directive.

14 years agoThe "image_filter_sharpen" directive.
Igor Sysoev [Tue, 8 Nov 2011 13:17:14 +0000 (13:17 +0000)]
The "image_filter_sharpen" directive.

14 years agoAncient incomplete ngx_http_status_module removal.
Igor Sysoev [Tue, 1 Nov 2011 15:16:28 +0000 (15:16 +0000)]
Ancient incomplete ngx_http_status_module removal.

14 years agoVersion bump.
Igor Sysoev [Tue, 1 Nov 2011 15:10:46 +0000 (15:10 +0000)]
Version bump.

14 years agorelease-1.1.7 tag
Igor Sysoev [Mon, 31 Oct 2011 14:52:53 +0000 (14:52 +0000)]
release-1.1.7 tag

14 years agonginx-1.1.7-RELEASE release-1.1.7
Igor Sysoev [Mon, 31 Oct 2011 14:52:46 +0000 (14:52 +0000)]
nginx-1.1.7-RELEASE

14 years agoSilently ignoring a stale global SSL error left after disabled renegotiation.
Igor Sysoev [Mon, 31 Oct 2011 14:30:03 +0000 (14:30 +0000)]
Silently ignoring a stale global SSL error left after disabled renegotiation.

14 years agoFixed documentation pointer.
Ruslan Ermilov [Mon, 31 Oct 2011 10:38:20 +0000 (10:38 +0000)]
Fixed documentation pointer.

14 years agoFixed segfault on configuration testing with ssl (ticket #37).
Maxim Dounin [Mon, 31 Oct 2011 09:57:14 +0000 (09:57 +0000)]
Fixed segfault on configuration testing with ssl (ticket #37).

The following config caused segmentation fault due to conf->file not
being properly set if "ssl on" was inherited from the http level:

http {
    ssl on;
    server {
    }
}

14 years agoEvent pipe: reduced number of file buffers used.
Maxim Dounin [Mon, 31 Oct 2011 09:54:55 +0000 (09:54 +0000)]
Event pipe: reduced number of file buffers used.

If possible we now just extend already present file buffer in p->out chain
instead of keeping ngx_buf_t for each buffer we've flushed to disk.  This
saves about 120 bytes of memory per buffer flushed to disk, and resolves
high CPU usage observed in edge cases (due to coalescing these buffers on
send).

14 years agoEvent pipe: fixes for complex protocols.
Maxim Dounin [Mon, 31 Oct 2011 09:53:16 +0000 (09:53 +0000)]
Event pipe: fixes for complex protocols.

1. In ngx_event_pipe_write_chain_to_temp_file() make sure to fully write
   all shadow buffers up to last_shadow.  With this change recycled buffers
   cannot appear in p->out anymore.  This also fixes segmentation faults
   observed due to ngx_event_pipe_write_chain_to_temp() not freeing any
   raw buffers while still returning NGX_OK.

2. In ngx_event_pipe_write_to_downstream() we now properly check for busy
   size as a size of buffers, not a size of data in these buffers.  This
   fixes situations where all available buffers became busy (including
   segmentation faults due to this).

3. The ngx_event_pipe_free_shadow_raw_buf() function is dropped.  It's
   incorrect and not needed.

14 years agoAdding m4a and m4v MIME types (closed #42).
Igor Sysoev [Fri, 28 Oct 2011 15:24:31 +0000 (15:24 +0000)]
Adding m4a and m4v MIME types (closed #42).

14 years agoRevamped "configure --help" text.
Ruslan Ermilov [Wed, 26 Oct 2011 13:18:33 +0000 (13:18 +0000)]
Revamped "configure --help" text.

14 years agoFix of building by Microsoft Visual C++ 10 compiler.
Igor Sysoev [Wed, 26 Oct 2011 08:16:59 +0000 (08:16 +0000)]
Fix of building by Microsoft Visual C++ 10 compiler.

14 years agoDecrease of log level of some SSL handshake errors.
Igor Sysoev [Tue, 25 Oct 2011 15:04:09 +0000 (15:04 +0000)]
Decrease of log level of some SSL handshake errors.

14 years agoFixed port range checking.
Ruslan Ermilov [Tue, 25 Oct 2011 13:48:43 +0000 (13:48 +0000)]
Fixed port range checking.

14 years agoFixed range checking for the "somaxconn" sysctl.
Ruslan Ermilov [Tue, 25 Oct 2011 13:48:05 +0000 (13:48 +0000)]
Fixed range checking for the "somaxconn" sysctl.

14 years agoSupport of several servers in the "resolver" directive.
Igor Sysoev [Mon, 24 Oct 2011 16:09:05 +0000 (16:09 +0000)]
Support of several servers in the "resolver" directive.

Patch by Kirill A. Korinskiy.

14 years agoUsing of junk value in slab allocator similar to modern FreeBSD values.
Igor Sysoev [Mon, 24 Oct 2011 15:50:19 +0000 (15:50 +0000)]
Using of junk value in slab allocator similar to modern FreeBSD values.

14 years agomalloc() debugging on MacOSX.
Igor Sysoev [Mon, 24 Oct 2011 15:46:48 +0000 (15:46 +0000)]
malloc() debugging on MacOSX.

14 years agoFreeBSD's MALLOC_OPTIONS must be set before any malloc() call.
Igor Sysoev [Mon, 24 Oct 2011 12:59:01 +0000 (12:59 +0000)]
FreeBSD's MALLOC_OPTIONS must be set before any malloc() call.
The bug has been introduced in r3799.

14 years agoFixed another return in unix ngx_write_chain_to_file().
Maxim Dounin [Fri, 21 Oct 2011 11:04:46 +0000 (11:04 +0000)]
Fixed another return in unix ngx_write_chain_to_file().

Previous patch missed special case for one iovec, it needs total bytes
written to be returned as well.

14 years agoFixed unix ngx_write_chain_to_file() to return total bytes written.
Maxim Dounin [Thu, 20 Oct 2011 12:40:26 +0000 (12:40 +0000)]
Fixed unix ngx_write_chain_to_file() to return total bytes written.

Previously result of last iteration's writev() was returned.  This was
unnoticed as return value was only used if chain contained only one or
two buffers.

14 years agoFixing conflict with SDK off_t definition.
Igor Sysoev [Thu, 20 Oct 2011 07:12:45 +0000 (07:12 +0000)]
Fixing conflict with SDK off_t definition.

14 years agoRecent SDKs allow to build IPV6 only for Windows XP or above.
Igor Sysoev [Thu, 20 Oct 2011 07:00:04 +0000 (07:00 +0000)]
Recent SDKs allow to build IPV6 only for Windows XP or above.

14 years agoFixed "expires @time" with unknown last modified time (ticket #32).
Maxim Dounin [Mon, 17 Oct 2011 17:32:08 +0000 (17:32 +0000)]
Fixed "expires @time" with unknown last modified time (ticket #32).

14 years agoFixed "expires @00h".
Maxim Dounin [Mon, 17 Oct 2011 17:30:18 +0000 (17:30 +0000)]
Fixed "expires @00h".

14 years agoRemoval of incomplete draft documentation processing.
Igor Sysoev [Mon, 17 Oct 2011 15:42:12 +0000 (15:42 +0000)]
Removal of incomplete draft documentation processing.

14 years agoVersion bump.
Igor Sysoev [Mon, 17 Oct 2011 15:39:59 +0000 (15:39 +0000)]
Version bump.