]> git.kaiwu.me - nginx.git/log
nginx.git
16 years agofix "if (!-x ...)"
Igor Sysoev [Tue, 3 Nov 2009 14:57:27 +0000 (14:57 +0000)]
fix "if (!-x ...)"

16 years agofix directive name in error message: "set_realip_from" to "set_real_ip_from"
Igor Sysoev [Tue, 3 Nov 2009 14:41:56 +0000 (14:41 +0000)]
fix directive name in error message: "set_realip_from" to "set_real_ip_from"

16 years agofix directive name in error message: "realip_from" to "set_realip_from"
Igor Sysoev [Tue, 3 Nov 2009 13:45:22 +0000 (13:45 +0000)]
fix directive name in error message: "realip_from" to "set_realip_from"

16 years agoIPv6 support in ngx_http_access_module
Igor Sysoev [Tue, 3 Nov 2009 13:42:45 +0000 (13:42 +0000)]
IPv6 support in ngx_http_access_module

16 years agongx_ptocidr() supports IPv6
Igor Sysoev [Tue, 3 Nov 2009 13:42:25 +0000 (13:42 +0000)]
ngx_ptocidr() supports IPv6

16 years agomake ngx_inet6_ntop() non-static
Igor Sysoev [Tue, 3 Nov 2009 12:44:55 +0000 (12:44 +0000)]
make ngx_inet6_ntop() non-static

16 years agooptimize some cycles:
Igor Sysoev [Mon, 2 Nov 2009 17:12:09 +0000 (17:12 +0000)]
optimize some cycles:

*) delete surplus variable;
*) on i386/amd64 "while (n) / n--" is smaller than "while (n--)",
   because the platforms have no postfix operations

16 years agoset_real_ip_from unix:
Igor Sysoev [Mon, 2 Nov 2009 16:46:07 +0000 (16:46 +0000)]
set_real_ip_from unix:

16 years agosupport IPv6 addresses in Real IP headers
Igor Sysoev [Mon, 2 Nov 2009 16:24:27 +0000 (16:24 +0000)]
support IPv6 addresses in Real IP headers

16 years agochange ngx_parse_addr() interface
Igor Sysoev [Mon, 2 Nov 2009 16:11:06 +0000 (16:11 +0000)]
change ngx_parse_addr() interface

16 years agoproxy_bind, fastcgi_bind, and memcached_bind
Igor Sysoev [Mon, 2 Nov 2009 15:24:02 +0000 (15:24 +0000)]
proxy_bind, fastcgi_bind, and memcached_bind

16 years agongx_parse_addr()
Igor Sysoev [Mon, 2 Nov 2009 15:20:42 +0000 (15:20 +0000)]
ngx_parse_addr()

16 years agorename ngx_peer_addr_t to ngx_addr_t
Igor Sysoev [Mon, 2 Nov 2009 15:14:17 +0000 (15:14 +0000)]
rename ngx_peer_addr_t to ngx_addr_t

16 years agouse sin6_addr.s6_addr instead of "(u_char *) & .sin6_addr"
Igor Sysoev [Mon, 2 Nov 2009 14:32:46 +0000 (14:32 +0000)]
use sin6_addr.s6_addr instead of "(u_char *) & .sin6_addr"

16 years agoreplace inet_addr() with ngx_inet_addr()
Igor Sysoev [Mon, 2 Nov 2009 13:51:10 +0000 (13:51 +0000)]
replace inet_addr() with ngx_inet_addr()

16 years agouse ngx_inet6_addr()
Igor Sysoev [Mon, 2 Nov 2009 12:58:30 +0000 (12:58 +0000)]
use ngx_inet6_addr()

16 years agongx_inet6_addr()
Igor Sysoev [Mon, 2 Nov 2009 12:50:00 +0000 (12:50 +0000)]
ngx_inet6_addr()

16 years agostyle fix
Igor Sysoev [Mon, 2 Nov 2009 12:41:56 +0000 (12:41 +0000)]
style fix

16 years agodelete unused field c->local_socklen
Igor Sysoev [Sun, 1 Nov 2009 19:29:49 +0000 (19:29 +0000)]
delete unused field c->local_socklen

16 years agoremove a broken 0.1.x to 0.2+ upgrade procedure
Igor Sysoev [Fri, 30 Oct 2009 19:42:12 +0000 (19:42 +0000)]
remove a broken 0.1.x to 0.2+ upgrade procedure

16 years agodo not unlink unix domain socket file while online upgrade
Igor Sysoev [Fri, 30 Oct 2009 19:18:21 +0000 (19:18 +0000)]
do not unlink unix domain socket file while online upgrade

16 years agounlink unix domain socket file after testing
Igor Sysoev [Fri, 30 Oct 2009 19:16:50 +0000 (19:16 +0000)]
unlink unix domain socket file after testing

16 years agofix segfaults if no listen directive was set in default server {} block:
Igor Sysoev [Thu, 29 Oct 2009 15:53:50 +0000 (15:53 +0000)]
fix segfaults if no listen directive was set in default server {} block:
ngx_http_add_listen() uses server's connection_pool_size and
client_header_timeout values, therefore it must be called after
the values have been merged, the bug had been introduced in r3218

16 years agostyle fix
Igor Sysoev [Wed, 28 Oct 2009 10:47:00 +0000 (10:47 +0000)]
style fix

16 years agofix segfault if http {} block is empty, the bug had been introduced in r3218
Igor Sysoev [Wed, 28 Oct 2009 10:45:40 +0000 (10:45 +0000)]
fix segfault if http {} block is empty, the bug had been introduced in r3218

16 years agobump version
Igor Sysoev [Wed, 28 Oct 2009 10:31:06 +0000 (10:31 +0000)]
bump version

16 years agorelease-0.8.21 tag
Igor Sysoev [Mon, 26 Oct 2009 14:09:26 +0000 (14:09 +0000)]
release-0.8.21 tag

16 years agonginx-0.8.21-RELEASE release-0.8.21
Igor Sysoev [Mon, 26 Oct 2009 14:09:25 +0000 (14:09 +0000)]
nginx-0.8.21-RELEASE

16 years agofix r3211
Igor Sysoev [Mon, 26 Oct 2009 12:00:37 +0000 (12:00 +0000)]
fix r3211

16 years agohttp listen unix domain sockets
Igor Sysoev [Mon, 26 Oct 2009 11:43:32 +0000 (11:43 +0000)]
http listen unix domain sockets

16 years agofix r3225 and r3227: preserve default_server bit during listen options
Igor Sysoev [Thu, 22 Oct 2009 10:17:54 +0000 (10:17 +0000)]
fix r3225 and r3227: preserve default_server bit during listen options
overwriting

16 years agodo not run regex for empty host name since regex always fails in this case,
Igor Sysoev [Thu, 22 Oct 2009 09:48:42 +0000 (09:48 +0000)]
do not run regex for empty host name since regex always fails in this case,
the bug had been introduced in r2196

16 years agotest a duplicate listen in a server
Igor Sysoev [Thu, 22 Oct 2009 08:15:16 +0000 (08:15 +0000)]
test a duplicate listen in a server

16 years agofix r3225: it overrode the listen options by default server default options
Igor Sysoev [Thu, 22 Oct 2009 08:14:02 +0000 (08:14 +0000)]
fix r3225: it overrode the listen options by default server default options

16 years agolisten default_server parameter
Igor Sysoev [Wed, 21 Oct 2009 19:18:50 +0000 (19:18 +0000)]
listen default_server parameter

16 years agoallow to set listen options in any server
Igor Sysoev [Wed, 21 Oct 2009 19:16:38 +0000 (19:16 +0000)]
allow to set listen options in any server

16 years agoadd listen address in error message
Igor Sysoev [Wed, 21 Oct 2009 19:13:27 +0000 (19:13 +0000)]
add listen address in error message

16 years agouse lowcase only hostname
Igor Sysoev [Wed, 21 Oct 2009 17:04:13 +0000 (17:04 +0000)]
use lowcase only hostname

16 years agorename core_srv_conf fields to more understandable default_server and server
Igor Sysoev [Wed, 21 Oct 2009 16:52:10 +0000 (16:52 +0000)]
rename core_srv_conf fields to more understandable default_server and server

16 years ago*) move sockaddr to the listen options
Igor Sysoev [Wed, 21 Oct 2009 16:47:44 +0000 (16:47 +0000)]
*) move sockaddr to the listen options
*) rename ngx_http_listen_t to ngx_http_listen_opt_t

16 years agofix r3218:
Igor Sysoev [Wed, 21 Oct 2009 16:27:48 +0000 (16:27 +0000)]
fix r3218:

Initially building lists of ports, addresses, and server names had been
placed at final configuration stage, because complete set of the "listen"s
and the "server_names" were required for this operation. r3218 broke it,
because the "listen"s go usually first in configuration, and
cscf->server_names is empty at this stage, therefore no virtual names
were configured.

Now server configurations are stored in array for each address:port
to configure virtual names. Also regex captures flag is moved from
server names to core server configuration.

16 years agorefactor http listen code: remove duplicate options fields
Igor Sysoev [Wed, 21 Oct 2009 08:48:04 +0000 (08:48 +0000)]
refactor http listen code: remove duplicate options fields

16 years agorefactor http listen code:
Igor Sysoev [Wed, 21 Oct 2009 08:19:46 +0000 (08:19 +0000)]
refactor http listen code:

*) add listen's to the global cmcf->ports array instead of server's one
*) rename ngx_http_listen_conf_t to ngx_http_listen_opt_t

16 years agofix two previous commits: an early parallel body discarding completion
Igor Sysoev [Tue, 20 Oct 2009 11:48:28 +0000 (11:48 +0000)]
fix two previous commits: an early parallel body discarding completion
disables incomplete ngx_http_writer()

16 years agoallow discarding body while a long response transfer
Igor Sysoev [Mon, 19 Oct 2009 16:13:38 +0000 (16:13 +0000)]
allow discarding body while a long response transfer

16 years agorestore discard body handler after ngx_http_set_writer() set it to
Igor Sysoev [Mon, 19 Oct 2009 16:12:13 +0000 (16:12 +0000)]
restore discard body handler after ngx_http_set_writer() set it to
ngx_http_test_reading(), the bug was introduced in r3050

16 years agofix ngx_http_finalize_request() code after a body has been discarded
Igor Sysoev [Mon, 19 Oct 2009 16:06:57 +0000 (16:06 +0000)]
fix ngx_http_finalize_request() code after a body has been discarded

16 years agoprevent handling discarded body as a pipelined request
Igor Sysoev [Mon, 19 Oct 2009 14:08:35 +0000 (14:08 +0000)]
prevent handling discarded body as a pipelined request

16 years agoadd lingering timeout if a response is short and a request body is being
Igor Sysoev [Mon, 19 Oct 2009 14:08:09 +0000 (14:08 +0000)]
add lingering timeout if a response is short and a request body is being
discarded, the bug was introduced in r3050

16 years agoadd SNI support in -V output
Igor Sysoev [Mon, 19 Oct 2009 12:35:01 +0000 (12:35 +0000)]
add SNI support in -V output

16 years agofix typo
Igor Sysoev [Mon, 19 Oct 2009 12:33:09 +0000 (12:33 +0000)]
fix typo

16 years agongx_http_parse_time() should support full 32-bit time
Igor Sysoev [Thu, 15 Oct 2009 13:19:34 +0000 (13:19 +0000)]
ngx_http_parse_time() should support full 32-bit time

16 years agouse ngx_uint_t instead of int,
Igor Sysoev [Thu, 15 Oct 2009 13:09:58 +0000 (13:09 +0000)]
use ngx_uint_t instead of int,
strange to say this reduce function size by 16 bytes

16 years agobump version
Igor Sysoev [Thu, 15 Oct 2009 13:01:42 +0000 (13:01 +0000)]
bump version

16 years agorelease-0.8.20 tag
Igor Sysoev [Wed, 14 Oct 2009 12:57:26 +0000 (12:57 +0000)]
release-0.8.20 tag

16 years agonginx-0.8.20-RELEASE release-0.8.20
Igor Sysoev [Wed, 14 Oct 2009 12:57:25 +0000 (12:57 +0000)]
nginx-0.8.20-RELEASE

16 years agoupdate r3201: ngx_http_random_index_module should behave consistently
Igor Sysoev [Wed, 14 Oct 2009 12:39:41 +0000 (12:39 +0000)]
update r3201: ngx_http_random_index_module should behave consistently
in spite of the dirent.d_type presence

16 years agoignore EACCES errors for top level directories in ngx_create_full_path()
Igor Sysoev [Wed, 14 Oct 2009 11:46:09 +0000 (11:46 +0000)]
ignore EACCES errors for top level directories in ngx_create_full_path()

16 years agodo not create Win32 drive letter in ngx_create_full_path()
Igor Sysoev [Wed, 14 Oct 2009 11:36:16 +0000 (11:36 +0000)]
do not create Win32 drive letter in ngx_create_full_path()

16 years ago*) reset cached dirent.d_type after stat()
Igor Sysoev [Wed, 14 Oct 2009 11:33:35 +0000 (11:33 +0000)]
*) reset cached dirent.d_type after stat()
   this fixes slash after link to a directory in ngx_http_autoindex_module;
*) use cached dirent.d_type as hint on all systems

the issues has been introduced in r2235

16 years agonginx did not close log file set by --error-log-path,
Igor Sysoev [Fri, 9 Oct 2009 14:43:09 +0000 (14:43 +0000)]
nginx did not close log file set by --error-log-path,
the bug was introduced in r2744

16 years agotest comma separator in "Cache-Control"
Igor Sysoev [Thu, 8 Oct 2009 14:22:00 +0000 (14:22 +0000)]
test comma separator in "Cache-Control"

16 years agohide cacheable Set-Cookie and P3P FastCGI response headers
Igor Sysoev [Wed, 7 Oct 2009 15:15:41 +0000 (15:15 +0000)]
hide cacheable Set-Cookie and P3P FastCGI response headers

16 years agouse only strong ciphers by default
Igor Sysoev [Wed, 7 Oct 2009 14:46:13 +0000 (14:46 +0000)]
use only strong ciphers by default

16 years agouse real file cache length, this fixes cache size counting for responses
Igor Sysoev [Wed, 7 Oct 2009 12:55:58 +0000 (12:55 +0000)]
use real file cache length, this fixes cache size counting for responses
without "Content-Length" header and 304 responses.

16 years agobump version
Igor Sysoev [Wed, 7 Oct 2009 12:48:05 +0000 (12:48 +0000)]
bump version

16 years agorelease-0.8.19 tag
Igor Sysoev [Tue, 6 Oct 2009 16:19:43 +0000 (16:19 +0000)]
release-0.8.19 tag

16 years agonginx-0.8.19-RELEASE release-0.8.19
Igor Sysoev [Tue, 6 Oct 2009 16:19:42 +0000 (16:19 +0000)]
nginx-0.8.19-RELEASE

16 years agofix r3184
Igor Sysoev [Tue, 6 Oct 2009 16:08:15 +0000 (16:08 +0000)]
fix r3184

16 years agodisable SSLv2 and low ciphers by default
Igor Sysoev [Tue, 6 Oct 2009 14:24:53 +0000 (14:24 +0000)]
disable SSLv2 and low ciphers by default

16 years agobump version
Igor Sysoev [Tue, 6 Oct 2009 13:52:26 +0000 (13:52 +0000)]
bump version

16 years agorelease-0.8.18 tag
Igor Sysoev [Tue, 6 Oct 2009 12:44:51 +0000 (12:44 +0000)]
release-0.8.18 tag

16 years agonginx-0.8.18-RELEASE release-0.8.18
Igor Sysoev [Tue, 6 Oct 2009 12:44:50 +0000 (12:44 +0000)]
nginx-0.8.18-RELEASE

16 years agolimit_conn_log_level
Igor Sysoev [Tue, 6 Oct 2009 10:14:29 +0000 (10:14 +0000)]
limit_conn_log_level

16 years agolimit_req_log_level
Igor Sysoev [Tue, 6 Oct 2009 10:14:21 +0000 (10:14 +0000)]
limit_req_log_level

16 years agofix building by gcc45
Igor Sysoev [Tue, 6 Oct 2009 09:46:16 +0000 (09:46 +0000)]
fix building by gcc45

16 years agomake limit_req to conform to the leaky bucket algorithm
Igor Sysoev [Tue, 6 Oct 2009 09:37:18 +0000 (09:37 +0000)]
make limit_req to conform to the leaky bucket algorithm

16 years agoomit '\0' from "Location" header on MKCOL request
Igor Sysoev [Tue, 6 Oct 2009 09:32:21 +0000 (09:32 +0000)]
omit '\0' from "Location" header on MKCOL request

16 years agoclear r->lingering_close to disable preventively calling
Igor Sysoev [Fri, 2 Oct 2009 11:32:56 +0000 (11:32 +0000)]
clear r->lingering_close to disable preventively calling
ngx_http_set_lingering_close() while request cleanup

16 years agoclear r->keepalive to disable preventively calling
Igor Sysoev [Fri, 2 Oct 2009 11:30:47 +0000 (11:30 +0000)]
clear r->keepalive to disable preventively calling
ngx_http_set_keepalive() while request cleanup

16 years agoupdate r3167: do not set r->discard_body if the body has been just discarded
Igor Sysoev [Fri, 2 Oct 2009 09:46:04 +0000 (09:46 +0000)]
update r3167: do not set r->discard_body if the body has been just discarded

16 years agoread_ahead
Igor Sysoev [Wed, 30 Sep 2009 13:21:52 +0000 (13:21 +0000)]
read_ahead

16 years agoLinux/SPARC malloc() returns an address aligned to 8. This conflicts with
Igor Sysoev [Wed, 30 Sep 2009 12:56:44 +0000 (12:56 +0000)]
Linux/SPARC malloc() returns an address aligned to 8. This conflicts with
our SPARC 16-byte alignment and some allocations may be done out of pool.
ngx_memalign(ngx_pagesize) fixes this issue.

16 years agolog 499 instead 0, the bug was introduced in r3050
Igor Sysoev [Wed, 30 Sep 2009 12:05:08 +0000 (12:05 +0000)]
log 499 instead 0, the bug was introduced in r3050

16 years agoallow several perl_modules
Igor Sysoev [Wed, 30 Sep 2009 11:46:01 +0000 (11:46 +0000)]
allow several perl_modules

16 years agouse ngx_conf_set_str_array_slot() for perl_require
Igor Sysoev [Mon, 28 Sep 2009 16:07:14 +0000 (16:07 +0000)]
use ngx_conf_set_str_array_slot() for perl_require

16 years agooptimize error handling
Igor Sysoev [Mon, 28 Sep 2009 15:57:28 +0000 (15:57 +0000)]
optimize error handling

16 years agobump version
Igor Sysoev [Mon, 28 Sep 2009 15:56:28 +0000 (15:56 +0000)]
bump version

16 years agorelease-0.8.17 tag
Igor Sysoev [Mon, 28 Sep 2009 13:08:10 +0000 (13:08 +0000)]
release-0.8.17 tag

16 years agonginx-0.8.17-RELEASE release-0.8.17
Igor Sysoev [Mon, 28 Sep 2009 13:08:09 +0000 (13:08 +0000)]
nginx-0.8.17-RELEASE

16 years agofix request counter in resolver handling, the bug was introduced in r3050
Igor Sysoev [Mon, 28 Sep 2009 12:31:47 +0000 (12:31 +0000)]
fix request counter in resolver handling, the bug was introduced in r3050

16 years agoallow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev [Mon, 28 Sep 2009 12:24:09 +0000 (12:24 +0000)]
allow "make clean" for OpenSSL, the bug was introduced in r2874

16 years agowe do not need to increase request counter in this place,
Igor Sysoev [Mon, 28 Sep 2009 11:12:45 +0000 (11:12 +0000)]
we do not need to increase request counter in this place,
the bug had appeared in r3115

16 years agofix r3078: do not increase request counter if body has been just discarded
Igor Sysoev [Sat, 26 Sep 2009 13:24:15 +0000 (13:24 +0000)]
fix r3078: do not increase request counter if body has been just discarded

16 years agouse parents around NGX_ATOMIC_T_LEN value
Igor Sysoev [Fri, 25 Sep 2009 20:25:47 +0000 (20:25 +0000)]
use parents around NGX_ATOMIC_T_LEN value

16 years agouniform ngx_directio_on/off() interface with other file functions
Igor Sysoev [Fri, 25 Sep 2009 14:17:28 +0000 (14:17 +0000)]
uniform ngx_directio_on/off() interface with other file functions

16 years agohandle short pwrite() to log an error cause: ENOSPC, EDQUOT, or EFBIG
Igor Sysoev [Fri, 25 Sep 2009 13:55:46 +0000 (13:55 +0000)]
handle short pwrite() to log an error cause: ENOSPC, EDQUOT, or EFBIG

16 years agofix discarding body
Igor Sysoev [Fri, 25 Sep 2009 11:55:33 +0000 (11:55 +0000)]
fix discarding body

16 years agocheck unsafe Destination
Igor Sysoev [Fri, 25 Sep 2009 09:30:06 +0000 (09:30 +0000)]
check unsafe Destination

16 years agolow ENAMETOOLONG logging level
Igor Sysoev [Fri, 25 Sep 2009 09:13:08 +0000 (09:13 +0000)]
low ENAMETOOLONG logging level