summaryrefslogtreecommitdiffhomepage
path: root/src/core (follow)
AgeCommit message (Collapse)AuthorFilesLines
2012-03-15Version bump.Maxim Dounin1-2/+2
2012-03-05Merge of r4500: fixed spelling in single-line comments.Maxim Dounin1-1/+1
2012-03-05Merge of r4498:Maxim Dounin2-22/+12
Fix of rbtree lookup on hash collisions. Previous code incorrectly assumed that nodes with identical keys are linked together. This might not be true after tree rebalance. Patch by Lanshun Zhou.
2012-03-05Merge of r4497:Maxim Dounin1-5/+6
Fixed null pointer dereference in resolver (ticket #91). The cycle->new_log.file may not be set before config parsing finished if there are no error_log directive defined at global level. Fix is to copy it after config parsing. Patch by Roman Arutyunyan.
2012-03-05Version bump.Maxim Dounin1-2/+2
2012-02-05Merge of r4406, r4413: copyrights updated.Maxim Dounin58-0/+58
2012-02-05Merge of r4405:Maxim Dounin1-1/+1
Fixed division by zero exception in ngx_hash_init(). The ngx_hash_init() function did not expect call with zero elements count, which caused FPE error on configs with an empty "types" block in http context and "types_hash_max_size" > 10000.
2012-02-05Merge of r4398:Maxim Dounin1-9/+32
Changed ngx_log_debugN() macros to verify the number of arguments when built with debugging.
2012-02-04Merge of r4327:Maxim Dounin1-17/+0
Removed unused function ngx_regex_capture_count(). The function has been unused since r3326 (0.8.25).
2012-02-04Version bump.Maxim Dounin1-2/+2
2011-12-14Merge of r4313:Maxim Dounin1-0/+9
Added escaping of double quotes in ngx_escape_html(). Patch by Zaur Abasmirzoev.
2011-12-14Merge of r4294:Maxim Dounin1-0/+4
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.
2011-12-14Merge of r4284:Maxim Dounin2-18/+36
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.
2011-12-14Merge of r4227, r4228:Maxim Dounin1-3/+3
Fixed range checking for the "somaxconn" sysctl. Fixed port range checking.
2011-12-13Merge of r4223:Maxim Dounin1-4/+4
FreeBSD's MALLOC_OPTIONS must be set before any malloc() call. The bug has been introduced in r3799.
2011-12-13Version bump.Maxim Dounin1-2/+2
2011-11-14Merge of r4280:Igor Sysoev1-1/+2
Reverted incorrect change in internal md5 (part of r3928).
2011-11-14Merge of r4268:Igor Sysoev1-7/+7
Fixed compression pointer processing in DNS response greater than 255 bytes. Thanks to Ben Hawkes.
2011-11-14Version bump.Igor Sysoev1-2/+2
2011-11-01Merging r4210:Igor Sysoev1-3/+3
Fixed utf8 decode (ticket #25). Patch by Alexey Kuts.
2011-11-01Merging r4193, r4194:Igor Sysoev2-7/+28
Autoindex fixes: *) Autoindex: escape '?' in file names. For files with '?' in their names autoindex generated links with '?' not escaped. This resulted in effectively truncated links as '?' indicates query string start. This is an updated version of the patch originally posted at [1]. It introduces generic NGX_ESCAPE_URI_COMPONENT which escapes everything but unreserved characters as per RFC 3986. This approach also renders unneeded special colon processing (as colon is percent-encoded now), it's dropped accordingly. [1] http://nginx.org/pipermail/nginx-devel/2010-February/000112.html *) Autoindex: escape html in file names.
2011-11-01Merging r4132, r4134, r4143, r4183, r4191, r4199:Igor Sysoev3-3/+3
Various fixes related to error messages: *) Removed old warning that suggested to use "server_name_in_redirect off" (now the default) in place of no longer supported "server_name *". *) Fixing directive name in error message if types hash size is not enough. *) Replaced "can not" with "cannot" and "could not" in a bunch of places. Fixed nearby grammar errors. *) Overhauled error messages.
2011-11-01Merging r4017:Igor Sysoev1-1/+1
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-11-01Merging r4013, r4200:Igor Sysoev1-3/+7
error_log related fixes: *) Complain on invalid log levels. Previously only first log level was required to be correct, while error_log directive in fact accepts list of levels (e.g. one may specify "error_log ... debug_core debug_http;"). This resulted in (avoidable) wierd behaviour on missing semicolon after error_log directive, e.g. error_log /path/to/log info index index.php; silently skipped index directive and it's arguments (trying to interpret them as log levels without checking to be correct). *) Fixed configuration summary and manpage contents for the special --error-log-path=stderr case.
2011-11-01Merging r4009, r4133, r4184, r4201, r4202, r4203, r4204, r4205:Igor Sysoev2-24/+24
Miscellaneous fixes: *) Fix of names of the referer hash size directives introduced in r3940. *) Cosmetics: replaced NGX_CONF_TAKE1 to NGX_CONF_FLAG for "sendfile" and "chunked_transfer_encoding" directives, to be in line with all directives taking a boolean argument. Both flags will ensure that a directive takes one argument. *) Improved ngx_parse_time() code readability. *) Preallocating exact number of default MIME types entries. *) Stylistic change in checking the boolean expression. *) Replaced magic constants representing default values of some directives with appropriate #define's. *) Fixed grammar in a comment. *) Fixed two minor bugs in "types" parsing code.
2011-11-01Version bump.Igor Sysoev1-2/+2
2011-10-01Version bump.Igor Sysoev1-2/+2
2011-09-30Merging r4077, r4101, r4102:Igor Sysoev1-5/+3
open_file_cache related fixes: *) 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. *) 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.
2011-09-30Merging r3933, r4154:Igor Sysoev1-5/+0
A new fix for the case when ssl_session_cache defined, but ssl is not enabled in any server. The previous r1033 does not help when unused zone becomes used after reconfiguration, so it is backed out. The initial thought was to make SSL modules independed from SSL implementation and to keep OpenSSL code dependance as much as in separate files.
2011-09-30Version bump.Igor Sysoev1-2/+2
2011-08-29Merge of r3960, r3961, r3962, r3963, r3965:Igor Sysoev1-0/+2
SSL related fixes: *) MSIE export versions are rare now, so RSA 512 key is generated on demand and is shared among all hosts instead of pregenerating for every HTTPS host on configuraiton phase. This decreases start time for configuration with large number of HTTPS hosts. *) ECDHE support; patch by Adrian Kotelba *) fix build by gcc46 with -Wunused-value option *) fix SSL connection issues on platforms with 32-bit off_t *) do not try to reuse and save a SSL session for a peer created on the fly by ngx_http_upstream_create_round_robin_peer(), since the peer lives only during request so the saved SSL session will never be used again and just causes memory leak
2011-08-29Merge of r3966, r3967, r3968, r3969, r3970, r3971:Igor Sysoev2-0/+2
Cache loader improvements: The cache loader performs two tasks: inserting cache objects in inactivity list and evaluating total cache size. Reading just directory is enough for this purpose. Elimination of reading cache files saves at least one disk I/O operation per file.
2011-08-29Version bump.Igor Sysoev1-2/+2
2011-07-18fix building by MSVCIgor Sysoev1-26/+26
2011-06-27bump versionIgor Sysoev1-2/+2
2011-05-27fix building on FreeBSD 6 or earlier against system md5Igor Sysoev1-1/+1
2011-05-27make built-in ngx_md5_update() interface consistent with other implemenationsIgor Sysoev2-4/+3
2011-05-26fix building --without-http_auth_basic_module,Igor Sysoev1-0/+4
the bug has been introduced in r3923
2011-05-26bump versionIgor Sysoev1-2/+2
2011-05-16"$apr1", "{PLAIN}", and "{SSHA}" password methods in auth basic moduleIgor Sysoev2-0/+253
patch by Maxim Dounin
2011-05-11bump versionIgor Sysoev1-2/+2
2011-05-10use POSIX semaphores in shmtx instead of sched_yield()Igor Sysoev2-80/+223
number of spinlock spins are increased twice
2011-05-04bump versionIgor Sysoev1-2/+2
2011-04-23fix building by gcc 4.6 without --with-debugIgor Sysoev1-4/+4
2011-04-23style fix: remove trailing spacesIgor Sysoev1-29/+29
2011-04-22Use more precise stat.st_blocks to account cache size on UnixIgor Sysoev2-0/+3
instead of file length rounded to a file system block size. There is no similar way on Windows, so rounding to a cache->bsize is kept.
2011-04-15an internal MD5 implemenationIgor Sysoev2-0/+308
patch by Maxim Dounin
2011-04-15fix segfault in IPv6 parsing while processing invalid IPv4 address X.YYYY.ZIgor Sysoev1-1/+1
patch by Maxim Dounin
2011-04-15ngx_murmur_hash2()Igor Sysoev3-0/+69
2011-04-15bump versionIgor Sysoev1-2/+2