Commit Graph

813 Commits

Author SHA1 Message Date
Igor Sysoev
cf72935bc3 a client address must be allocated from a connection pool
to live through the keep-alive requests
2007-02-17 21:06:47 +00:00
Igor Sysoev
5473662c94 COPY and MOVE
fix PUT and DELETE to conform to WebDAV specification
2007-02-16 12:16:25 +00:00
Igor Sysoev
d74b66c82c finalize request to allow post_action 2007-02-15 18:53:48 +00:00
Igor Sysoev
37a6905cb1 fix broken values, debug logging, and style fix 2007-02-15 15:05:26 +00:00
Igor Sysoev
e8722b8b98 optimize $http_x_forwarded_for 2007-02-15 15:04:36 +00:00
Igor Sysoev
cf815023fc fix format 2007-02-15 14:13:24 +00:00
Igor Sysoev
9d58e4bed3 if client closes a connection prematurely, then epoll (at least
in Linux 2.6.16) sends EPOLLERR|EPOLLHUP|EPOLLIN only and writer
does not know about the error
2007-02-15 10:02:34 +00:00
Igor Sysoev
7b2d87ffa0 add debug logging 2007-02-15 10:00:59 +00:00
Igor Sysoev
722231f407 ngx_strcasecmp()/ngx_strncasecmp() 2007-02-14 18:51:19 +00:00
Igor Sysoev
e5234d3e05 bump version 2007-02-12 15:37:36 +00:00
Igor Sysoev
f15b839a88 log a right subrequest 2007-02-09 13:49:14 +00:00
Igor Sysoev
f0b150faf8 fix segfault when $fastcgi_script_name is used in access_log
and there was bad request (400)
2007-02-09 11:56:23 +00:00
Igor Sysoev
e980185ee0 bump version 2007-02-05 14:49:52 +00:00
Igor Sysoev
0762f4e749 fix several ranges 2007-02-04 18:40:47 +00:00
Igor Sysoev
e31625b60e use ngx_dir_access() to enable search bits for directory 2007-01-29 12:25:44 +00:00
Igor Sysoev
e99305be7a eliminate the useless space symbol 2007-01-29 11:54:36 +00:00
Igor Sysoev
8b57df9480 log a real response error code instead of "0" 2007-01-29 11:53:23 +00:00
Igor Sysoev
92929b9799 bump version 2007-01-25 22:19:34 +00:00
Igor Sysoev
5f8e7365a1 bump version 2007-01-25 21:45:22 +00:00
Igor Sysoev
3dc4fdf4e0 $memcached_key 2007-01-25 08:45:41 +00:00
Igor Sysoev
cd5b99a045 undo "client_body_in_file_only any"
and introduce "client_body_in_file_only clean"

introduce ngx_pool_delete_file() to not break a possible third-party
ngx_pool_cleanup_file() usage that may lead to an removal of the useful files

delete unnecessary ngx_http_finalize_request_body()
2007-01-25 08:45:04 +00:00
Igor Sysoev
3a58cc90b5 fix "access_log off" 2007-01-24 09:15:25 +00:00
Igor Sysoev
64304df431 client_body_in_file_only any 2007-01-24 09:14:08 +00:00
Igor Sysoev
604a7d1da4 delete temporary file for incomplete small request body 2007-01-23 12:55:23 +00:00
Igor Sysoev
d0863c106d log a failure of the writing to access_log once per minute 2007-01-21 19:01:01 +00:00
Igor Sysoev
300de4fb61 allow "sendfile" in "if" context 2007-01-21 17:42:28 +00:00
Igor Sysoev
8885f8736c env 2007-01-20 19:26:48 +00:00
Igor Sysoev
354a4ef4e5 bump version 2007-01-19 19:48:48 +00:00
Igor Sysoev
36588962aa fix segfault when a request body fits in r->header_in and
the body will be written to file
2007-01-19 16:13:15 +00:00
Igor Sysoev
8ff1e3251c fix segfault when client_body_in_file_only is on, the body is not passed
to upstream, and nginx tries next upstream
2007-01-19 12:57:02 +00:00
Igor Sysoev
ae2006b2fe a non-active client connection must not closed after send timeout 2007-01-19 12:22:32 +00:00
Igor Sysoev
66f76d2f72 style and comment fix 2007-01-19 11:35:26 +00:00
Igor Sysoev
8d6de94f5b if client closes a connection prematurely, then epoll (at least
in Linux 2.6.18) sends EPOLLERR|EPOLLHUP|EPOLLIN only and writer
does not know about the error
2007-01-19 08:10:06 +00:00
Igor Sysoev
e95ea5b878 the PUTing to collection must return NGX_HTTP_BAD_REQUEST 2007-01-18 21:14:46 +00:00
Igor Sysoev
56331ba499 the "Overwrite" header line 2007-01-18 21:11:23 +00:00
Igor Sysoev
f5a359bdec add size, access, and mtime to ngx_walk_tree() 2007-01-18 21:04:31 +00:00
Igor Sysoev
da7281a6da NGX_HTTP_PRECONDITION_FAILED 2007-01-18 20:51:51 +00:00
Igor Sysoev
5fdb179a60 update nginx.xs to ngx_open_file(name, mode, create, access) 2007-01-18 20:48:03 +00:00
Igor Sysoev
50034b856c ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access) 2007-01-18 20:15:09 +00:00
Igor Sysoev
fe1cb8c3ac rename mode to access 2007-01-18 19:52:18 +00:00
Igor Sysoev
ecef14e307 style fix 2007-01-17 10:50:52 +00:00
Igor Sysoev
66af04752f fix debug logging 2007-01-16 20:43:36 +00:00
Igor Sysoev
03c9cb7afc fix comparison 2007-01-16 19:01:10 +00:00
Igor Sysoev
c326529feb bump version 2007-01-16 11:04:51 +00:00
Igor Sysoev
8488a1ce11 allow the upstream modules to send a header only 2007-01-15 17:12:43 +00:00
Igor Sysoev
4502bf57b3 add debug logging for FastCGI zero size buf alert 2007-01-15 16:00:51 +00:00
Igor Sysoev
ec3cabdcd9 ngx_strn2cmp() > ngx_memn2cmp() 2007-01-12 21:58:02 +00:00
Igor Sysoev
a1e82cca22 style fix 2007-01-12 21:57:20 +00:00
Igor Sysoev
805706a20f fix duplicate rbtree keys case 2007-01-12 20:38:17 +00:00
Igor Sysoev
6043c80639 style fix: remove tabs 2007-01-12 20:26:39 +00:00
Igor Sysoev
1279b049b4 stop rbtree search early if equal hash was found 2007-01-11 16:57:30 +00:00
Igor Sysoev
ec582de2dd test length of variable and number of connections 2007-01-11 16:50:06 +00:00
Igor Sysoev
2c32b5a1d2 fix segfault 2007-01-09 22:04:40 +00:00
Igor Sysoev
fe9a066d69 fix connection counter in subrequests 2007-01-09 20:58:41 +00:00
Igor Sysoev
36fefe3cfe fix typo 2007-01-09 20:57:49 +00:00
Igor Sysoev
e98b867409 bump version 2007-01-09 20:57:24 +00:00
Igor Sysoev
a3ec505730 do not count connection for subrequest 2007-01-09 16:26:53 +00:00
Igor Sysoev
4e77a2bb83 pass the inherited shm_zone data 2007-01-09 15:59:20 +00:00
Igor Sysoev
1691aaf290 correct an error log message 2007-01-08 18:23:38 +00:00
Igor Sysoev
2316936389 use right status code 2007-01-08 18:22:06 +00:00
Igor Sysoev
36b1edca84 undo r979 2007-01-08 18:20:03 +00:00
Igor Sysoev
eb9b9d1c95 new syntax 2007-01-07 18:52:34 +00:00
Igor Sysoev
e7b5df16ba ngx_http_realip_module must return NGX_DECLINED 2007-01-07 18:45:55 +00:00
Igor Sysoev
6eee80156f count connection once per request 2007-01-07 17:47:17 +00:00
Igor Sysoev
d5ca16cdd4 ngx_http_variable_binary_remote_addr() 2007-01-07 13:36:56 +00:00
Igor Sysoev
e6bf2be77e $binary_remote_addr 2007-01-07 13:35:08 +00:00
Igor Sysoev
ba658fc603 fix key length and alignment 2007-01-07 09:18:26 +00:00
Igor Sysoev
138e384c44 ngx_http_limit_zone_module 2007-01-06 18:52:46 +00:00
Igor Sysoev
f250a6dfba fix segfault 2007-01-06 13:01:26 +00:00
Igor Sysoev
3364dc6eb7 move the session cache callbacks to the ngx_openssl_module 2007-01-03 15:25:40 +00:00
Igor Sysoev
528cdb7c2c ssl_session_cache 2007-01-02 23:55:05 +00:00
Igor Sysoev
daf66de4a5 style fix: scf > sscf 2007-01-02 23:50:10 +00:00
Igor Sysoev
018b2a6376 style fix 2007-01-02 23:41:54 +00:00
Igor Sysoev
ebf2bbc310 ngx_ssl_get_server_conf() 2007-01-02 23:37:25 +00:00
Igor Sysoev
e974a72404 move ranges array to ngx_http_range_filter_ctx_t 2006-12-29 08:02:31 +00:00
Igor Sysoev
6fd25e105c support ranges for single memory buffer 2006-12-29 07:47:37 +00:00
Igor Sysoev
818700cfcf fix the previous commit 2006-12-29 07:01:11 +00:00
Igor Sysoev
0e8fc7a6b4 fix range in $r->sendfile 2006-12-28 20:55:25 +00:00
Igor Sysoev
c49d3ec7d4 style fix 2006-12-28 20:12:03 +00:00
Igor Sysoev
1980cc13f1 recursive DELETE 2006-12-25 12:38:44 +00:00
Igor Sysoev
d46aee8242 limit the ngx_http_index_module methods to GET, HEAD and POST 2006-12-25 12:37:04 +00:00
Igor Sysoev
26db569df0 style fix: remove trailing spaces 2006-12-24 21:07:34 +00:00
Igor Sysoev
ec810aef85 bump version 2006-12-24 18:42:26 +00:00
Igor Sysoev
17b0e8722a fix segfault 2006-12-22 13:05:07 +00:00
Igor Sysoev
4e08b9c17a fix debug log 2006-12-20 19:38:06 +00:00
Igor Sysoev
03011fa512 fix segfault when $host is used and
*) request is "GET http://host" without CR or LF, or timed out
*) request is "GET      http://host" with a large blank space
2006-12-15 10:24:57 +00:00
Igor Sysoev
c996d3250d bump version 2006-12-14 23:22:34 +00:00
Igor Sysoev
f367b11a62 fix segfault when $host is used and request is "GET http://host HTTP/1.0" 2006-12-14 22:42:52 +00:00
Igor Sysoev
55269a70cf allow "perl" inside "limit_except" 2006-12-14 22:13:33 +00:00
Igor Sysoev
acbcd9da7f DELETE may not have the "Depth" header 2006-12-14 22:12:42 +00:00
Igor Sysoev
fc99b009bc fix number of arguments 2006-12-14 22:11:52 +00:00
Igor Sysoev
6778476a66 bump version 2006-12-13 15:11:27 +00:00
Igor Sysoev
db4e43c225 fix msvc build failure 2006-12-13 15:06:46 +00:00
Igor Sysoev
b6ef94f49b $r->status 2006-12-13 13:49:56 +00:00
Igor Sysoev
5a4344f5f8 add HTTP response codes 2006-12-13 12:31:58 +00:00
Igor Sysoev
df88a81783 fix ngx_http_perl_sleep_handler() 2006-12-13 12:30:57 +00:00
Igor Sysoev
65b8a197b9 $r->variable() supports perl only variables 2006-12-12 22:06:03 +00:00
Igor Sysoev
e773324c30 $r->sleep() 2006-12-12 20:59:24 +00:00
Igor Sysoev
332efbc412 style fix 2006-12-12 20:58:41 +00:00
Igor Sysoev
7e8dd2578a fix $r->has_request_body() 2006-12-12 20:57:48 +00:00
Igor Sysoev
d1985e91f5 axe ngx_http_perl_cleanup_sv(): all SVs should be freed
by perl_free() in ngx_http_perl_cleanup_perl()
2006-12-12 20:06:04 +00:00
Igor Sysoev
e8c5dc6ff4 $r->log_error() 2006-12-12 19:33:13 +00:00
Igor Sysoev
bf3aaac7ac rewritten upstream 2006-12-12 16:46:16 +00:00
Igor Sysoev
63ba5a61b5 fix highly unlikely bug 2006-12-12 15:46:53 +00:00
Igor Sysoev
169efce947 bump version 2006-12-12 14:17:04 +00:00
Igor Sysoev
2fb2a8dbf9 upstream name was tried to resolve 2006-12-11 15:12:07 +00:00
Igor Sysoev
b8989b9694 bump version 2006-12-11 11:05:54 +00:00
Igor Sysoev
5d118d3f77 fix fastcgi and memcached upstreams 2006-12-11 08:59:30 +00:00
Igor Sysoev
cf100a7827 fix post_action for disconnected client 2006-12-11 08:31:54 +00:00
Igor Sysoev
e60b99f1d0 TCP upstreams always used the first TCP upstream with the same name 2006-12-11 08:25:03 +00:00
Igor Sysoev
a19ed3eddd fix when last htpasswd line has no CR or LF 2006-12-06 14:17:42 +00:00
Igor Sysoev
8f98581bbf the previous fix does not actually fix overflow 2006-12-06 11:33:18 +00:00
Igor Sysoev
8b6844c747 fix msec overflow 2006-12-05 20:30:05 +00:00
Igor Sysoev
67effaff99 bump version 2006-12-04 17:05:07 +00:00
Igor Sysoev
3d2fd18a39 upstream choice modules 2006-12-04 16:46:13 +00:00
Igor Sysoev
90d7bb2b13 the PERL_NO_GET_CONTEXT is actually required, see perlguts 2006-11-28 13:20:34 +00:00
Igor Sysoev
a8c54c082c axe old % log format 2006-11-27 14:46:15 +00:00
Igor Sysoev
f9ad2f1545 bump version to 0.5.0 2006-11-27 14:34:42 +00:00
Igor Sysoev
9a29d129f2 add comment 2006-11-26 16:56:41 +00:00
Igor Sysoev
36d520d686 fix segfaults in future workers those will use old configuration,
if new configuration failed
2006-11-26 15:35:02 +00:00
Igor Sysoev
f9b7db5aaa Axe several perl interpreter instances: they may be useful in currently
unsupported threaded environment, but now they complicate code:
*) perl_clone() requires at least duplicating nginx stash;
*) the multiplicity requires to re-evalute all precompiled subroutines
   and nginx stash in new interpreter context.
2006-11-26 14:35:27 +00:00
Igor Sysoev
ac6e1c1254 add debug logging 2006-11-25 23:27:34 +00:00
Igor Sysoev
fab5acdd28 fix recursive perl_set variable call 2006-11-25 23:27:06 +00:00
Igor Sysoev
b5602b113a it seems the PERL_NO_GET_CONTEXT was needed to disable warnings only 2006-11-25 23:24:24 +00:00
Igor Sysoev
e9726bf7f4 style fix 2006-11-25 23:23:27 +00:00
Igor Sysoev
446abc3b4d axe unused code 2006-11-24 13:19:13 +00:00
Igor Sysoev
95ead46111 use host part in URL 2006-11-23 20:20:23 +00:00
Igor Sysoev
eb885fafd2 fix negative upstream response time 2006-11-15 20:51:07 +00:00
Igor Sysoev
c28473eef4 bump version 2006-11-15 20:07:57 +00:00
Igor Sysoev
ae5db1d400 fix add_before_body without add_after_body 2006-11-14 13:15:08 +00:00
Igor Sysoev
58364233a6 debug log should not be under rewrite_log control 2006-11-14 12:45:03 +00:00
Igor Sysoev
8365f731bf add more WebDAV methods 2006-11-14 12:43:48 +00:00
Igor Sysoev
e927b1e58a allow proxy_pass inside limit_except 2006-11-14 12:43:14 +00:00
Igor Sysoev
81188729e6 charset could not be set for ngx_http_autoindex_module responses 2006-11-13 20:53:37 +00:00
Igor Sysoev
12c94ae212 fix big client body receiving with deferred accept() 2006-11-13 20:40:17 +00:00
Igor Sysoev
5fd6d349c8 fix subrequest limit 2006-11-02 13:48:28 +00:00
Igor Sysoev
85300c3f14 fix subrequest limit 2006-11-02 13:38:25 +00:00
Igor Sysoev
cf5836e850 bump version 2006-10-31 15:41:41 +00:00
Igor Sysoev
eccb108f5c $r->variable 2006-10-31 14:46:48 +00:00
Igor Sysoev
e9b7809178 style fix 2006-10-31 12:30:24 +00:00
Igor Sysoev
bc808a7bab style fix 2006-10-31 12:27:32 +00:00
Igor Sysoev
addd3c8676 treat '\' as special character in win32 only 2006-10-30 20:36:54 +00:00
Igor Sysoev
020ffea637 high level HTTP buffered flags should be on per-subrequest basis,
this fix a bug in SSI when a big static file is included
2006-10-30 20:25:22 +00:00
Igor Sysoev
b5c75dc88a style fix 2006-10-28 14:36:44 +00:00
Igor Sysoev
0593b63c6a undo the previous wrong commit 2006-10-28 14:32:39 +00:00
Igor Sysoev
e6d99d831c bad commit 2006-10-28 14:20:13 +00:00
Igor Sysoev
a994bd0ae2 change order 2006-10-28 13:59:56 +00:00
Igor Sysoev
0359ba8cc1 optimize the most frequent cases 2006-10-28 12:04:43 +00:00
Igor Sysoev
e23b4849b5 handle the most frequent case first 2006-10-28 10:47:11 +00:00
Igor Sysoev
a724100799 axe unused state 2006-10-28 10:42:24 +00:00
Igor Sysoev
b80a7f4318 omit "#fragment" 2006-10-28 10:15:31 +00:00
Igor Sysoev
4346bab52e we do not need the zero terminated r->uri for a long time 2006-10-28 08:45:01 +00:00
Igor Sysoev
da04d54f81 bump version 2006-10-25 16:33:40 +00:00
Igor Sysoev
62f87beb76 style fix: remove trailing spaces 2006-10-25 16:19:03 +00:00
Igor Sysoev
711dd6f79a fix alias without trailing slash 2006-10-25 15:36:11 +00:00
Igor Sysoev
297f2bb4b9 axe unused code 2006-10-25 14:13:27 +00:00
Igor Sysoev
2aeb32e564 $r->allow_ranges 2006-10-25 13:56:32 +00:00
Igor Sysoev
914bcbd671 now the "memcached_pass" directive uses ngx_parse_url() 2006-10-24 13:50:35 +00:00
Igor Sysoev
20bf47b73d now the "listen" directives use ngx_parse_url() 2006-10-24 13:06:55 +00:00
Igor Sysoev
70296c518a bump version 2006-10-23 13:50:51 +00:00
Igor Sysoev
a1e7b04a43 NULL is short way 2006-10-20 19:10:16 +00:00
Igor Sysoev
44d8bc2ff1 fix segfault if $server_addr failed 2006-10-20 19:07:50 +00:00
Igor Sysoev
c1484ffa65 downgrade gravity of getsockname() errors 2006-10-18 14:27:16 +00:00
Igor Sysoev
37188918ed style fix: remove trailing spaces 2006-10-17 16:13:49 +00:00
Igor Sysoev
bb8bbb7c0b backout r783 and add comment 2006-10-17 12:47:14 +00:00
Igor Sysoev
cab3b30e2c fix building by Debian gcc-4.1.2 amd64 2006-10-16 13:29:52 +00:00
Igor Sysoev
e5efadb60e add 255th array element 2006-10-16 11:28:33 +00:00
Igor Sysoev
9ab9f0a220 allow ranges for full flv files 2006-10-16 07:47:00 +00:00
Igor Sysoev
d54c497d97 bump version 2006-10-13 15:47:56 +00:00
Igor Sysoev
960100e371 <!--#include virtual=... set=... --> 2006-10-13 15:20:10 +00:00
Igor Sysoev
8a444aa724 check nginx.pm version 2006-10-12 19:55:15 +00:00
Igor Sysoev
d79b21d1c6 previous commit broke two modules 2006-10-12 13:56:16 +00:00
Igor Sysoev
0e5f86d871 remove r->root_length 2006-10-12 13:36:54 +00:00
Igor Sysoev
c3df798bb4 compact r->http_minor and r->http_major 2006-10-12 13:08:26 +00:00
Igor Sysoev
84b7f5ba0d fix <!--#include virtual=... wait="yes" -->
r766 did not fix the bug too
2006-10-11 14:33:38 +00:00
Igor Sysoev
d40ee41c09 fix <!--#include virtual=... wait="yes" -->
r759 did not fix the bug
2006-10-11 09:12:01 +00:00
Igor Sysoev
a33dafb110 do not send flv header for full file 2006-10-11 05:33:15 +00:00
Igor Sysoev
358ec14ce9 variable should not be found if no request body file 2006-10-11 05:32:39 +00:00
Igor Sysoev
bb49607243 $request_body_file 2006-10-10 15:50:08 +00:00
Igor Sysoev
9fcccaf66f fix <!--#include virtual=... wait="yes" --> 2006-10-10 14:30:39 +00:00
Igor Sysoev
cea316dbae not do ngx_http_upstream_finalize_request() twice 2006-10-10 13:17:58 +00:00
Igor Sysoev
e3fbaeaffe fix building introduced by previous commit 2006-10-10 13:12:13 +00:00
Igor Sysoev
52ec2c48b9 finalize nonbuffered request on timeout 2006-10-10 13:11:06 +00:00
Igor Sysoev
fc3f068bc5 style fix: remove trailing spaces 2006-10-09 15:38:59 +00:00
Igor Sysoev
b50500689a ngx_http_flv_module 2006-10-09 14:17:36 +00:00
Igor Sysoev
5ad1d4b5ef ngx_http_charset_module supports the variables 2006-10-09 14:16:36 +00:00
Igor Sysoev
aec57e2613 align hash bucket size to cache line 2006-10-09 14:03:16 +00:00
Igor Sysoev
627b8aa3bd fix hash building on unknown 64-bit platform 2006-10-06 15:06:02 +00:00
Igor Sysoev
4ee7077b51 nonexistent $sent_http_content has value of $sent_http_content_length or so 2006-10-05 15:09:26 +00:00
Igor Sysoev
daec217def $r->headers_out("Content-Length", "NNN") did not work 2006-10-05 15:05:47 +00:00
Igor Sysoev
cccc185623 after redirecting by error_page any rewrite directive will return this code,
bug introduced in r727
2006-10-03 18:06:44 +00:00
Igor Sysoev
5e05cb4a19 nginx-0.4.4-RELEASE
fix msvc build failure introduced by previous commit
2006-10-02 11:44:21 +00:00
Igor Sysoev
49c9ea0e26 $scheme variable 2006-10-02 11:07:36 +00:00
Igor Sysoev
8fd830adc0 set "Content-Length: 0" for errors handled by "return 204" 2006-10-02 10:22:51 +00:00
Igor Sysoev
8c0dec813f expires max 2006-10-02 08:53:30 +00:00
Igor Sysoev
97c7e1a986 fix: "return" always overrode "error_page" response code 2006-10-02 08:37:11 +00:00
Igor Sysoev
4c7f511364 fix segfault when zero length file is PUT 2006-10-01 07:17:01 +00:00
Igor Sysoev
c9098081e2 fix proxy_redirect with variable 2006-09-26 21:15:52 +00:00
Igor Sysoev
4c804591c1 ancient browsers support in ngx_http_browser_module 2006-09-26 12:19:34 +00:00
Igor Sysoev
94124f3983 fix msvc build failure introduced by previous commit 2006-09-25 20:04:54 +00:00