Commit graph

3844 commits

Author SHA1 Message Date
Ruslan Ermilov
134f6e5f0a Regenerate after previous commit. 2011-09-06 13:43:04 +00:00
Ruslan Ermilov
cf38eb8e59 Finished initial translation of the Core and HTTP Core modules. 2011-09-06 13:42:40 +00:00
Ruslan Ermilov
0f08a4f1bc Regenerate after previous commit. 2011-09-06 10:42:17 +00:00
Ruslan Ermilov
c9e169e0d6 New elements: "dq", "pathname"; new list type: "tag". 2011-09-06 10:41:44 +00:00
Maxim Dounin
e725734d23 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
cc810027b8 Version bump. 2011-09-05 16:26:51 +00:00
Igor Sysoev
30a73a9b3b release-1.1.2 tag 2011-09-05 13:14:34 +00:00
Igor Sysoev
2242c127e4 nginx-1.1.2-RELEASE 2011-09-05 13:14:27 +00:00
Maxim Dounin
9b09a660d2 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
23443b6c16 Regenerate after previous commit. 2011-09-05 09:58:31 +00:00
Ruslan Ermilov
96bcf5255f Translate "types" and "underscores_in_headers" directives. 2011-09-05 09:58:00 +00:00
Ruslan Ermilov
a833f47c06 Regenerate HTML for the previous revision. 2011-09-05 09:40:50 +00:00
Ruslan Ermilov
9c1d3e7188 Initial English translation of Core and HTTP Core modules. 2011-09-05 09:39:24 +00:00
Ruslan Ermilov
f397eb62a4 XSLT regeneration for the previous commit. 2011-09-05 09:33:54 +00:00
Ruslan Ermilov
4ef437eb26 DTD and XSLS changes for modules. 2011-09-05 09:32:00 +00:00
Maxim Dounin
ecfe0113d6 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
Maxim Dounin
253721c4b0 Proper SSL shutdown handling.
If connection has unsent alerts, SSL_shutdown() tries to send them even
if SSL_set_shutdown(SSL_RECEIVED_SHUTDOWN|SSL_SENT_SHUTDOWN) was used.
This can be prevented by SSL_set_quiet_shutdown().  SSL_set_shutdown()
is required nevertheless to preserve session.
2011-09-01 13:49:36 +00:00
Igor Sysoev
ebc3990334 Now if client requests more ranges than "max_ranges" permits,
nginx disables ranges and returns just the source response.
2011-09-01 13:03:55 +00:00
Igor Sysoev
990a7d7fa5 The "max_ranges" directive.
"max_ranges 0" disables ranges support at all,
"max_ranges 1" allows the single range, etc.
By default number of ranges is unlimited, to be precise, 2^31-1.
2011-08-31 09:40:55 +00:00
Igor Sysoev
b8c461aa54 Style fix: removal of tabs introduced in the previous commit. 2011-08-31 09:26:07 +00:00
Igor Sysoev
4476ee96c8 *) fix of r4060: start value should be tested after the "found" label;
*) optimization: start value may be tested against end value only,
   since end value here may not be greater than content_length.
2011-08-30 20:34:58 +00:00
Igor Sysoev
5726f0d357 Unsatisfiable range with start value greater than content length
was not properly skipped. The bug has been introduced in r4057.
2011-08-30 14:25:35 +00:00
Igor Sysoev
060297520c ngx_http_range_parse() should be static. 2011-08-30 13:07:33 +00:00
Igor Sysoev
95d4ca17b8 Ranges processing small optimization. 2011-08-30 13:06:12 +00:00
Igor Sysoev
559cd34ba9 Now unsatisfiable ranges are processed according to RFC 2616. 2011-08-30 13:01:55 +00:00
Igor Sysoev
2fb9408b38 Ranges processing small optimization. 2011-08-30 12:45:24 +00:00
Igor Sysoev
8b30429bd1 Style fix. 2011-08-30 12:28:01 +00:00
Igor Sysoev
cbbf90d9b8 Now if total size of all ranges is greater than source response size,
then nginx disables ranges and returns just the source response.
This fix should not affect well-behaving applications but will defeat
DoS attempts exploiting malicious byte ranges.
2011-08-26 09:42:50 +00:00
Igor Sysoev
d7c1fe5f5b Cache size accounting fix: actual cache size on disk was less than
needed by sum of sizes of files loaded by worker processes themselves
while cache loader was running.

The bug has been introduced in r3900.
2011-08-25 17:29:34 +00:00
Maxim Dounin
8f54c88bdd Better handling of various per-server ssl options with SNI.
SSL_set_SSL_CTX() doesn't touch values cached within ssl connection
structure, it only changes certificates (at least as of now, OpenSSL
1.0.0d and earlier).

As a result settings like ssl_verify_client, ssl_verify_depth,
ssl_prefer_server_ciphers are only configurable on per-socket basis while
with SNI it should be possible to specify them different for two servers
listening on the same socket.

Workaround is to explicitly re-apply settings we care about from context
to ssl connection in servername callback.

Note that SSL_clear_options() is only available in OpenSSL 0.9.8m+.  I.e.
with older versions it is not possible to clear ssl_prefer_server_ciphers
option if it's set in default server for a socket.
2011-08-23 14:36:31 +00:00
Igor Sysoev
cb0498da6c Version bump. 2011-08-23 14:22:34 +00:00
Ruslan Ermilov
6db2ed0cfb Restore the lost negation. 2011-08-23 13:39:22 +00:00
Igor Sysoev
5b129859e5 Removing incomplete draft documentation from release tarball and zip. 2011-08-23 13:35:02 +00:00
Igor Sysoev
6afda56a48 Grammar fixes in CHANGES. 2011-08-23 13:29:47 +00:00
Igor Sysoev
69954e741c CHANGES conversion from KOI8-R to UTF-8. 2011-08-23 12:50:54 +00:00
Igor Sysoev
0bc89850bb Grammar fixes in CHANGES. 2011-08-23 10:18:35 +00:00
Igor Sysoev
6a904d417f XSLT regeneration for the previous commit. 2011-08-23 10:11:09 +00:00
Igor Sysoev
0a4c8438b6 Traling spaces removal in text CHANGES files. 2011-08-23 10:10:25 +00:00
Igor Sysoev
b587ba834c XSLT regeneration for r4023. 2011-08-23 09:48:44 +00:00
Ruslan Ermilov
1b075335d6 Get rid of " <br/>" hacks. 2011-08-23 09:01:13 +00:00
Ruslan Ermilov
1636327379 - support <br/> in the middle of input
- fixed "<br>" lookup (eliminates the need in " <br/>" hacks)
- fixed maximum length for unbreakable input
- fixed space lookup (allows a space at column 77 to break a line)
2011-08-23 09:00:24 +00:00
Igor Sysoev
3fbcbcda80 release-1.1.1 tag 2011-08-22 13:56:14 +00:00
Igor Sysoev
8ee9429c07 nginx-1.1.1-RELEASE 2011-08-22 13:56:08 +00:00
Igor Sysoev
c68fd722ae SIGWINCH/NOACCEPT signal is disabled now in non-daemon mode.
Non-daemon mode is currently used by supervisord, daemontools and so on
or during debugging. The NOACCEPT signal is only used for online upgrade
which is not supported when nginx is run under supervisord, etc.,
so this change should not break existant setups.
2011-08-22 12:34:48 +00:00
Igor Sysoev
38f69601e9 The change in adaptive loader behaviour introduced in r3975:
now cache loader processes either as many files as specified by loader_files
or works no more than time specified by loader_threshold during each iteration.

loader_threshold was previously used to decrease loader_files or
to increase loader_timeout and this might eventually result in
downgrading loader_files to 1 and increasing loader_timeout to large values
causing loading cache for forever.
2011-08-22 10:16:49 +00:00
Maxim Dounin
3bbcc2c24d Fix buffer overrun under Windows. 2011-08-22 10:07:27 +00:00
Maxim Dounin
d8829c8f29 Move SO_ACCEPTFILTER and TCP_DEFER_ACCEPT checks into configure.
NetBSD 5.0+ has SO_ACCEPTFILTER support merged from FreeBSD, and having
accept filter check in FreeBSD-specific ngx_freebsd_config.h prevents it
from being used on NetBSD.  Therefore move the check into configure (and
do the same for Linux-specific TCP_DEFER_ACCEPT, just to be in line).
2011-08-21 11:37:37 +00:00
Maxim Dounin
8a3f0cdbe7 Fix ignored headers handling in fastcgi/scgi/uwsgi.
The bug had appeared in r3561 (fastcgi), r3638 (scgi), r3567 (uwsgi).
2011-08-19 20:11:39 +00:00
Ruslan Ermilov
75639f81d9 XSLT regeneration for r3998. 2011-08-19 08:39:27 +00:00
Ruslan Ermilov
6af6d60ce8 - Added missing dependencies for the CHANGES{,ru} targets.
- Pass string params to xsltproc.
- Removed extraneous rule bodies.
2011-08-19 08:33:47 +00:00