Граф коммитов

  • f0cbfc390d add ngx.resolve api charliesome/resolve Charlie Somerville 2015-12-01 15:14:47 +1100
  • c79a847fb9 bugfix: better caller context checks in the Lua APIs of ngx.balancer. v0.9.19-balancer-by-lua Yichun Zhang (agentzh) 2015-11-27 15:14:26 +0800
  • 17473bca2a fixed a copy&paste mistake in an error message for balancer_by_lua*. Yichun Zhang (agentzh) 2015-11-27 14:43:29 +0800
  • 4b3136fa52 bugfix: balancer_by_lua* failed to work with the ngx_http_upstream_keepalive module. thanks Lance Li for the report and Dejiang Zhu for the patch in #609. Yichun Zhang (agentzh) 2015-11-25 21:07:07 +0800
  • 3eced1691f Revert "tweaked .gitattributes a bit more." Yichun Zhang (agentzh) 2015-11-25 20:39:40 +0800
  • 4a785b66bb tweaked .gitattributes a bit more. Yichun Zhang (agentzh) 2015-11-23 23:04:39 +0800
  • b1eead8161 added a .gitattributes file to correct GitHub's language tag. Yichun Zhang (agentzh) 2015-11-23 23:02:59 +0800
  • ff6ebaa937 feature: implemented the balancer_by_lua_block and balancer_by_lua_file directives which can be used in upstream {} blocks to define custom upstream load balancers in Lua. Yichun Zhang (agentzh) 2015-11-02 22:04:05 +0800
  • fd76e196a8 bumped the ABI version to 0.9.20. master Yichun Zhang (agentzh) 2015-11-28 19:52:24 +0800
  • 0cad356ac3 bugfix: better caller context checks in the Lua APIs of ngx.balancer. balancer-by-lua Yichun Zhang (agentzh) 2015-11-27 15:14:26 +0800
  • 8ba27b1dc6 fixed a copy&paste mistake in an error message for balancer_by_lua*. Yichun Zhang (agentzh) 2015-11-27 14:43:29 +0800
  • 7f2f5cfc00 bugfix: balancer_by_lua* failed to work with the ngx_http_upstream_keepalive module. thanks Lance Li for the report and Dejiang Zhu for the patch in #609. Yichun Zhang (agentzh) 2015-11-25 21:07:07 +0800
  • 5ad443bf29 Merge branch 'master' into balancer-by-lua Yichun Zhang (agentzh) 2015-11-25 20:39:46 +0800
  • 0fa40cd9d0 Revert "tweaked .gitattributes a bit more." Yichun Zhang (agentzh) 2015-11-25 20:39:40 +0800
  • 049feaffd0 a follow-up fix for #611. Yichun Zhang (agentzh) 2015-11-25 20:35:46 +0800
  • 94f68befa3 bugfix: bogus nginx.conf parse failure "Lua code block missing the "}" character" might happen when there are many Lua code blocks inlined. thanks Andreas Lubbe for the report and test case in #611. Yichun Zhang (agentzh) 2015-11-25 20:19:25 +0800
  • 2b93087210 bugfix: bogus "subrequests cycle" errors might occur with nginx 1.9.5+ due to the recent changes in the nginx core. Yichun Zhang (agentzh) 2015-11-25 12:15:39 +0800
  • 1fae289285 Revert "tweaked .gitattributes a bit more." Yichun Zhang (agentzh) 2015-11-25 11:35:00 +0800
  • 4ab399199a develper build script: disabled the spdy module since it is already removed. Yichun Zhang (agentzh) 2015-11-24 22:36:38 +0800
  • fe50cff389 tweaked .gitattributes a bit more. Yichun Zhang (agentzh) 2015-11-23 23:04:39 +0800
  • 2fa55e8638 added a .gitattributes file to correct GitHub's language tag. Yichun Zhang (agentzh) 2015-11-23 23:02:59 +0800
  • 9d7e79190e tweaked .gitattributes a bit more. Yichun Zhang (agentzh) 2015-11-23 23:04:39 +0800
  • ce825b9a6d added a .gitattributes file to correct GitHub's language tag. Yichun Zhang (agentzh) 2015-11-23 23:02:59 +0800
  • 7b1ff62c21 bumped version to 0.9.19. v0.9.19 Yichun Zhang (agentzh) 2015-11-11 17:49:24 +0800
  • 905d7d0f04 bugfix: using quotes inside a pair of long brackets might lead to parse failures. this is similar to the issue reported by Dejiang Zhu in #596. fixes Yichun Zhang (agentzh) 2015-11-09 11:58:00 +0800
  • c317742742 doc: ngx.var: documented the values for undefined and uninitialized nginx variables. thanks Sean Johnson for asking for this explanation in #595. Yichun Zhang (agentzh) 2015-11-05 19:57:27 +0800
  • ea33435022 doc: bumped version to 0.9.18. v0.9.18 Yichun Zhang (agentzh) 2015-11-04 22:42:39 +0800
  • f8e1a7ae78 doc: emphasized that we target NGINX's HTTP subsystem in this module. Yichun Zhang (agentzh) 2015-11-04 21:24:34 +0800
  • 4e897529d7 bugfix: use line comments inside a pair of long brackets might lead to parse failures. thanks Dejiang Zhu for the patch in #596. Yichun Zhang (agentzh) 2015-11-04 17:07:37 +0800
  • 1861e9adf1 feature: implemented the balancer_by_lua_block and balancer_by_lua_file directives which can be used in upstream {} blocks to define custom upstream load balancers in Lua. Yichun Zhang (agentzh) 2015-11-02 22:04:05 +0800
  • 809c674327 bugfix: fixed errors and warnings with C compilers without variadic macro support. Yichun Zhang (agentzh) 2015-11-01 12:26:32 +0800
  • ec86ade221 bumped the API version to 0.9.18. v0.9.18rc1 Yichun Zhang (agentzh) 2015-10-30 21:18:22 +0800
  • 9fb2948c49 feature: now we support LuaJIT 2 on Windows (in the form of lua51.dll). Yichun Zhang (agentzh) 2015-10-30 21:17:28 +0800
  • 4a9d4b11fb bugfix: subrequest response status codes between the range 100 .. 299 (inclusive) might get lost in the return values of ngx.location.capture*() calls. thanks Igor Clark for the report. Yichun Zhang (agentzh) 2015-10-30 15:16:09 +0800
  • 2f65b0fff0 bugfix: we might return the wrong shm zone in the public C API function ngx_http_lua_find_zone(). thanks qlee001 for the report in #589. Yichun Zhang (agentzh) 2015-10-30 14:57:05 +0800
  • 2cbeb0c5a8 doc: bumped version to 0.9.17. v0.9.17 Yichun Zhang (agentzh) 2015-10-27 17:11:14 +0800
  • 04a57a1d38 doc: fixed a typo. Yichun Zhang (agentzh) 2015-10-27 12:11:32 +0800
  • e5c01f3dc3 doc: use *_by_lua_block {} in the examples in Synopsis; also updated the TODO and Special Escaing Sequeneces sections to reflect recent changes. Yichun Zhang (agentzh) 2015-10-27 12:06:50 +0800
  • 9afe2066a0 documented the log_by_lua_block {} directive. Yichun Zhang (agentzh) 2015-10-27 11:55:17 +0800
  • acc8239910 documented the body_filter_by_lua_block {} directive. Yichun Zhang (agentzh) 2015-10-27 11:52:49 +0800
  • d76317b62a documented the header_filter_by_lua_block {} directive. Yichun Zhang (agentzh) 2015-10-27 11:48:09 +0800
  • 51be770acd documented the access_by_lua_block {} directive. Yichun Zhang (agentzh) 2015-10-27 11:45:05 +0800
  • 2ba17fd197 documented the rewrite_by_lua_block {} directive. Yichun Zhang (agentzh) 2015-10-27 11:27:35 +0800
  • 37167ce58a documented the content_by_lua_block {} directive. Yichun Zhang (agentzh) 2015-10-27 11:24:50 +0800
  • def5d55008 documented the init_worker_by_lua_block {} directive. Yichun Zhang (agentzh) 2015-10-27 11:21:22 +0800
  • 8daa9a672c doc: use proper wiki syntax. Yichun Zhang (agentzh) 2015-10-27 11:18:38 +0800
  • 0025a9827a documented the init_by_lua_block {} directive. Yichun Zhang (agentzh) 2015-10-27 11:15:27 +0800
  • 95dd9cd617 documented the set_by_lua_block directive. Yichun Zhang (agentzh) 2015-10-27 11:03:42 +0800
  • bf9436adef tests: removed a bogus test case for set_by_lua_block. Yichun Zhang (agentzh) 2015-10-27 10:38:40 +0800
  • 195baff55d feature: implemented the set_by_lua_block directive. Yichun Zhang (agentzh) 2015-10-26 16:23:04 +0800
  • effd1d1d5b fixed the test serial numbers in t/028-req-header.t. Yichun Zhang (agentzh) 2015-10-26 16:19:11 +0800
  • 62e31a3f25 bugfix: fixed typos due to copy&paste mistakes in some error messages. Yichun Zhang (agentzh) 2015-10-26 16:10:29 +0800
  • cecc0e789b bugfix: setting builtin request header Upgrade via ngx.req.set_header and etc might not take effect with some bultin nginx modules. Yichun Zhang (agentzh) 2015-10-21 12:20:21 +0800
  • 1d640d6e84 a followup fix for commit c96625866. Yichun Zhang (agentzh) 2015-10-21 11:53:27 +0800
  • b948841c0d bugfix: setting builtin request headers Depth, Destination, Overwrite, and Date via ngx.req.set_header() and etc might not take effect at least with ngx_http_dav_module. thanks Igor Clark for the report. Yichun Zhang (agentzh) 2015-10-21 11:47:42 +0800
  • c96625866b refactor: reordered the request header entries in the ngx_http_lua_set_handlers array to match ngx_http_headers_in in the nginx core. Yichun Zhang (agentzh) 2015-10-21 11:35:18 +0800
  • da089df2d8 doc: updated the wiki file to reflect recent changes. Yichun Zhang (agentzh) 2015-10-15 15:44:25 +0800
  • 311539270b tests: removed the useless "use lib" directives from the Perl test files. thanks Markus Linnala for the report in #464. Yichun Zhang (agentzh) 2015-10-08 17:13:16 +0800
  • 8b32f3616d feature: initial fixes when being used with the new ngx_http_v2 module since nginx 1.9.5. thanks itpp16 for the patch in #569 and #570. Yichun Zhang (agentzh) 2015-10-08 16:52:52 +0800
  • 8a0a3e4706 doc: nginx 1.9.3 is compatible. Yichun Zhang (agentzh) 2015-10-06 11:01:00 +0800
  • bccf4dab24 bugfix: the user specified ./configure's --with-cc-opt and --with-ld-opt might override the LUAJIT_INC/LUAJIT_LIB and LUA_INC/LUA_LIB environment settings. thanks Julian Gonggrijp for the report in openresty/ngx_openresty#117. v0.9.17rc1 Yichun Zhang (agentzh) 2015-10-01 16:24:45 +0800
  • ec4076ef3a reverted the last commit. Yichun Zhang (agentzh) 2015-09-30 16:29:10 +0800
  • e801097952 skipped test cases that do not make sense for the "check leaks" testing mode. Yichun Zhang (agentzh) 2015-09-30 10:56:58 +0800
  • bec51155f2 fixed line numbers in 132-lua-blocks.t. Yichun Zhang (agentzh) 2015-09-30 10:54:44 +0800
  • a688d5a068 doc: a code example misses a "return". thanks YuanSheng Wang for the patch in #572. Yichun Zhang (agentzh) 2015-09-28 10:47:19 +0800
  • 6b558cd4bd feature: implemented the *_by_lua_block {...} directives that do not require extra escaping when inlining Lua code in nginx.conf. Yichun Zhang (agentzh) 2015-09-14 22:33:34 +0800
  • 1cf9e66718 *_by_lua_block: fixed an inaccruate error message. by-lua-block Yichun Zhang (agentzh) 2015-09-26 20:22:06 +0800
  • 48e82021da added one more test case for an uncovered bad *_by_lua_block {} example. Yichun Zhang (agentzh) 2015-09-26 20:19:38 +0800
  • 85e2d14d81 bugfix: the string elements in the cf->args array should be null-terminated. Yichun Zhang (agentzh) 2015-09-26 20:16:20 +0800
  • d239c790f3 style: use lower-case identifiers for function-scoped local constants. Yichun Zhang (agentzh) 2015-09-26 20:11:25 +0800
  • 7a9d88d709 fixed line numbers in the parser error messages produced by *_by_lua_block. Yichun Zhang (agentzh) 2015-09-25 15:23:32 +0800
  • f4fcac4d3d fixed a test title. Yichun Zhang (agentzh) 2015-09-23 10:21:18 +0800
  • bd8c826702 added a warning comment to ngx_http_lua_lex.c to prohibit manual editing in that file. Yichun Zhang (agentzh) 2015-09-23 00:42:24 +0800
  • 4ac91b5b72 bugfix: avoided long lines exceeding 80 columns in ngx_http_lua_lex.c by using the latest re.pl. Yichun Zhang (agentzh) 2015-09-23 00:37:43 +0800
  • abcf0f22f9 feature: added new directives init_by_lua_block, init_worker_by_lua_block, header_filter_by_lua_block, and body_filter_by_lua_block. Yichun Zhang (agentzh) 2015-09-23 00:16:49 +0800
  • a63515d4f6 feature: added rewrite_by_lua_block, access_by_lua_block, and log_by_lua_block directives. Yichun Zhang (agentzh) 2015-09-22 23:57:34 +0800
  • 2cc02762ae made ngx_http_lua_lex.c clean under both gcc -Wall and clang -Wall by using the latest sregex DFA compiler. Yichun Zhang (agentzh) 2015-09-20 21:15:27 +0800
  • 4d9c2dcebf bugfix: *_by_lua_block: fixed a buffer overflow issue caught by Valgrind Memcheck. Yichun Zhang (agentzh) 2015-09-18 23:06:46 +0800
  • 1b69fa29c7 optimize: made ngx_http_lua_lex.c 6% smaller in source lines by means of the latest sregex DFA compiler with the error state merge optimization. Yichun Zhang (agentzh) 2015-09-18 23:02:58 +0800
  • 737726c3c5 optimize: reduced the C source lines in ngx_http_lua_lex.c by 59% using the latest sregex DFA compiler that adds a dead code elimination optimization based on constant submatch field propagation analysis. Yichun Zhang (agentzh) 2015-09-17 13:10:22 +0800
  • 8337879efd optimize: re-generate the ngx_http_lua_lex.c file using the new sregex DFA compiler which produces smaller machine code. Yichun Zhang (agentzh) 2015-09-17 10:57:26 +0800
  • 515f24d52d feature: implemented the content_by_lua_block {...} directive that does not require escaping Lua code. Yichun Zhang (agentzh) 2015-09-14 22:33:34 +0800
  • b5de0c2f9d bugfix: fixed one -Wmaybe-uninitialized warning when compiling with gcc -Os. Yichun Zhang (agentzh) 2015-09-18 23:08:38 +0800
  • 7e415bbbd5 optimize: fixed the hash-table initial sizes of the cosocket metatables. ops.dev.cn 2015-09-13 19:26:22 +0800
  • c93567d704 doc: more typo fixes from Lance Li in #565. Yichun Zhang (agentzh) 2015-09-13 12:14:46 +0800
  • 74aecfe720 doc: typo fixes from Lance Li in #564. Yichun Zhang (agentzh) 2015-09-10 21:23:18 +0800
  • 1885b4d299 doc: typo fixes from Lance Li in #562. Yichun Zhang (agentzh) 2015-09-10 11:56:51 +0800
  • 8269883035 doc: added links to more lua-resty-* libraries. Yichun Zhang (agentzh) 2015-09-09 16:36:19 +0800
  • a05e1eb546 bugfix: use of shared dicts resulted in (unwanted) registrations of shared dict metatables on all the lightuserdata in the Lua space. thanks helloyi for the report in #548 and patch in #557. Yichun Zhang (agentzh) 2015-09-03 17:09:38 +0800
  • 14f2b88b5a bumped the API version to 0.9.17. Yichun Zhang (agentzh) 2015-09-03 16:59:59 +0800
  • b6189f87f5 fixed the test plan. Yichun Zhang (agentzh) 2015-08-27 23:08:25 +0800
  • 69d1a6988a bugfix: if a 3rd-party module calls ngx_http_conf_get_module_srv_conf to fetch its current srv_conf construct in its merge_srv_conf callback, then use of init_worker_by_lua might lead to segmentation faults (the same also applied to merge_loc_conf). thanks chiyouhen for the report and patch in #554. Yichun Zhang (agentzh) 2015-08-27 17:46:35 +0800
  • ee30b7ce02 doc: updated the wiki format to reflect recent changes. Yichun Zhang (agentzh) 2015-08-21 22:51:59 +0800
  • 73bdb53911 Merge pull request #546 from doujiang24/doc Yichun Zhang 2015-08-21 22:48:45 +0800
  • 3043b71631 doc fix: ngx.exit is not disabled within header_filter_by_lua doujiang24 2015-08-18 22:52:03 +0800
  • ea195bd819 typo fixes in recently added test cases. Yichun Zhang (agentzh) 2015-08-16 20:40:57 +0800
  • b661ff10ed bugfix: the if_unmodified_since "shortcut" field in ngx_http_headers_in_t was first added in nginx 0.9.2. Yichun Zhang (agentzh) 2015-08-13 17:34:44 +0800
  • 2979422c41 Merge branch 'master' of github.com:openresty/lua-nginx-module Yichun Zhang (agentzh) 2015-08-13 17:23:12 +0800
  • bc0d619240 bugfix: ngx.req.clear_header/ngx.req.set_header: we did not update the shortcut fields in ngx_http_headers_in_t added since nginx 1.3.3 which may confuse other nginx modules accessing them. Yichun Zhang (agentzh) 2015-08-13 17:21:33 +0800
  • 5e45843126 doc: typo fix from Lance Li. Yichun Zhang (agentzh) 2015-08-12 17:54:56 +0800