Commit Graph

3728 Commits

Author SHA1 Message Date
Maxim Dounin
d7c2673d3f API change: ngx_chain_update_chains() now requires pool.
The ngx_chain_update_chains() needs pool to free chain links used for buffers
with non-matching tags.  Providing one helps to reduce memory consumption
for long-lived requests.
2011-09-15 16:03:17 +00:00
Maxim Dounin
a890b313f3 Buffers reuse in chunked filter.
There were 2 buffers allocated on each buffer chain sent through chunked
filter (one buffer for chunk size, another one for trailing CRLF, about
120 bytes in total on 32-bit platforms).  This resulted in large memory
consumption with long-lived requests sending many buffer chains.  Usual
example of problematic scenario is streaming though proxy with
proxy_buffering set to off.

Introduced buffers reuse reduces memory consumption in the above problematic
scenario.

See here for initial report:
http://mailman.nginx.org/pipermail/nginx/2010-April/019814.html
2011-09-15 15:25:42 +00:00
Igor Sysoev
57b4fdb6c8 MP4 co64 atom support added. 2011-09-15 13:23:03 +00:00
Ruslan Ermilov
2043745ec0 Regenerated after previous commit. 2011-09-15 08:59:38 +00:00
Ruslan Ermilov
fc084d0b62 Added ngx_http_mp4_module documentation. 2011-09-15 08:59:13 +00:00
Ruslan Ermilov
1ebdcd1d90 Regenerated after previous commit. 2011-09-15 08:33:25 +00:00
Ruslan Ermilov
2a46092c5a - The module name is now also output as an HTML header.
- Agreed that examples can only contain literal text.
- Agreed to call modules "ngx_*_module".
- Renamed XML element "http-error" to a more general "http-status".
- Fixed text of error codes to match the actual code.
2011-09-15 08:24:33 +00:00
Igor Sysoev
c940f5fc99 Fix of struct field name. 2011-09-15 05:15:16 +00:00
Igor Sysoev
1fc9a8dec6 Style fix. 2011-09-14 15:26:11 +00:00
Igor Sysoev
acdac73688 Fixing building by gcc-4.7. 2011-09-14 15:25:46 +00:00
Igor Sysoev
4a383594fb Version bump. 2011-09-14 15:20:01 +00:00
Igor Sysoev
66659e0689 release-1.1.3 tag 2011-09-14 15:00:51 +00:00
Igor Sysoev
0c54cce4e1 nginx-1.1.3-RELEASE 2011-09-14 15:00:43 +00:00
Igor Sysoev
9c5d25179c Fix of the previous commit: is_directio flag processing introduced in r4077
is still worthwhile.
2011-09-14 14:28:55 +00:00
Igor Sysoev
7ffb73c6b7 Bugfix: open_file_cache did not update file info on retest.
If file inode was not changed, cached file information was not updated
on retest.  As a result stale information might be cached forever if file
attributes was changed and/or file was extended.

This fix also makes obsolete r4077 change of is_directio flag handling,
since this flag is updated together with other file information.
2011-09-14 14:12:35 +00:00
Igor Sysoev
2cc42b74c7 Skipping traks with unsupported media formats. 2011-09-14 14:04:41 +00:00
Igor Sysoev
dcea2ce7d1 Fix of case when start sample does not reside on chunk boundary. 2011-09-14 05:16:20 +00:00
Ruslan Ermilov
59efbc4bcb In Mac OS X Lion, Apple deprecated the use of the system OpenSSL library
in favour of their CommonCrypto library.  This change adds a work-around
that allows nginx to still be built on Lion with OpenSSL.
2011-09-13 09:18:43 +00:00
Igor Sysoev
f824fb47fe Fix of debug message format. 2011-09-12 15:15:00 +00:00
Igor Sysoev
d44855067d Fix of codec debug message. 2011-09-12 14:54:28 +00:00
Igor Sysoev
3d9ae84bf9 Fix of error message. 2011-09-12 14:46:06 +00:00
Igor Sysoev
7e8ee656a8 Fix of error message. 2011-09-12 13:06:22 +00:00
Ruslan Ermilov
4e72846c60 Regenerate after previous commits. 2011-09-12 09:50:33 +00:00
Ruslan Ermilov
8595adc781 - The "example" element can now contain sub-elements.
- Added entities for Unicode quotes.
2011-09-12 09:49:56 +00:00
Ruslan Ermilov
5a8a4bd20c HTTP errors are now output as "code (text)". 2011-09-12 09:48:33 +00:00
Igor Sysoev
e07a3577a9 mp4_max_moov_size directive has been renamed to mp4_max_buffer_size. 2011-09-12 09:38:04 +00:00
Igor Sysoev
b1c79a449e bugfix of r4086: nginx could not be built without debug log. 2011-09-09 11:56:49 +00:00
Igor Sysoev
5d01ac5af3 Bugfix of r4086: directio was always enabled if mp4 file was sent as is. 2011-09-09 11:13:55 +00:00
Igor Sysoev
2d06be2437 "video/mp4" mime type added. 2011-09-09 10:25:43 +00:00
Igor Sysoev
dde4d7e300 ngx_http_mp4_module 2011-09-09 10:22:34 +00:00
Ruslan Ermilov
16d873aa70 Regenerate after previous commits. 2011-09-08 13:28:25 +00:00
Ruslan Ermilov
b39c482985 Cleaned up links. 2011-09-08 13:27:18 +00:00
Ruslan Ermilov
18870058fe Regenerate after previous commit. 2011-09-08 13:26:37 +00:00
Ruslan Ermilov
aab747108d Basic inter-document and external linking support. 2011-09-08 13:26:06 +00:00
Ruslan Ermilov
ecf83ef955 Regenerate after previous commit. 2011-09-06 13:43:04 +00:00
Ruslan Ermilov
fbbde8871e Finished initial translation of the Core and HTTP Core modules. 2011-09-06 13:42:40 +00:00
Ruslan Ermilov
12a9b32cca Regenerate after previous commit. 2011-09-06 10:42:17 +00:00
Ruslan Ermilov
a49d5f8e5c New elements: "dq", "pathname"; new list type: "tag". 2011-09-06 10:41:44 +00:00
Maxim Dounin
4f65a05d18 Bugfix: open_file_cache lost is_directio flag.
On file retest open_file_cache lost is_directio if file wasn't changed.
This caused unaligned operations under Linux to fail with EINVAL.
It wasn't noticeable with AIO though, as errors wasn't properly logged.
2011-09-05 16:36:19 +00:00
Igor Sysoev
3a73e50498 Version bump. 2011-09-05 16:26:51 +00:00
Igor Sysoev
b8819911ed release-1.1.2 tag 2011-09-05 13:14:34 +00:00
Igor Sysoev
526cf6b068 nginx-1.1.2-RELEASE 2011-09-05 13:14:27 +00:00
Maxim Dounin
bfbbfc85df Bugfix: read event was not blocked after reading body.
Read event should be blocked after reading body, else undefined behaviour
might occur on additional client activity.  This fixes segmentation faults
observed with proxy_ignore_client_abort set.
2011-09-05 12:43:31 +00:00
Ruslan Ermilov
3541ab2d79 Regenerate after previous commit. 2011-09-05 09:58:31 +00:00
Ruslan Ermilov
dadc9cde62 Translate "types" and "underscores_in_headers" directives. 2011-09-05 09:58:00 +00:00
Ruslan Ermilov
de474e1f4f Regenerate HTML for the previous revision. 2011-09-05 09:40:50 +00:00
Ruslan Ermilov
6cf3e3b1d0 Initial English translation of Core and HTTP Core modules. 2011-09-05 09:39:24 +00:00
Ruslan Ermilov
52d83a3c4a XSLT regeneration for the previous commit. 2011-09-05 09:33:54 +00:00
Ruslan Ermilov
cd7b80a8bb DTD and XSLS changes for modules. 2011-09-05 09:32:00 +00:00
Maxim Dounin
82854d0d78 Proper setting of read->eof in pipe code.
Setting read->eof to 0 seems to be just a typo.  It appeared in
nginx-0.0.1-2003-10-28-18:45:41 import (r164), while identical code in
ngx_recv.c introduced in the same import do actually set read->eof to 1.

Failure to set read->eof to 1 results in EOF not being generally detectable
from connection flags.  On the other hand, kqueue won't report any read
events on such a connection since we use EV_CLEAR.  This resulted in read
timeouts if such connection was cached and used for another request.
2011-09-01 15:10:41 +00:00