Brian McCallister
bed1f11a32
use a sub-pool for scope_once
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200667 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 00:49:05 +00:00
Brian McCallister
bc7ecfdcf9
replace server scope with thread scope
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200656 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 00:16:56 +00:00
Brian McCallister
49ac1fbeb2
remove lingering reslist references before killing server scope
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200646 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 23:57:57 +00:00
Brian McCallister
1278d68ae7
remove ability to set min and max pool sizes for server scope in prep for removing server scope
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200639 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 23:54:00 +00:00
Brian McCallister
db8040ed4f
remove some debug logging which snuck in
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200614 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 23:13:08 +00:00
Joe Orton
48a5e0390d
* modules/lua/mod_lua.c (ap_lua_ssl_is_https): New function.
...
(lua_post_config): Pick up ssl_is_https optional function.
* modules/lua/lua_request.c (req_ssl_is_https_field): New function.
(ap_lua_load_request): Map is_https field to above.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200580 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 21:45:27 +00:00
Brian McCallister
5eb6753e25
remove last traces of the code cache
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200513 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 20:02:07 +00:00
Brian McCallister
1cedf45414
fix issue with incorrect munging of the lua package path -- LuaPackagePath directives were not working
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200475 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 18:48:50 +00:00
Eric Covener
2fb4d8c18f
ap_check_cmd_context checks don't work on the block forms
...
of the lua directives.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200204 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 07:30:55 +00:00
Eric Covener
2af550c8c9
mod_lua: Expose SSL variables via r:ssl_var_lookup()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199056 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 01:53:15 +00:00
Eric Covener
d63996c35d
allow some lua hooks to be run in "early" or "late" mode
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199031 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 00:36:03 +00:00
Eric Covener
629d9075cb
quick handlers and translate_name in lua can't be keyed off
...
Directory/Filename/htaccess
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1197853 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 01:08:05 +00:00
Eric Covener
bb2c7989ea
get the hello world of Handlers working again
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1197782 13f79535-47bb-0310-9956-ffa450edef68
2011-11-04 21:17:57 +00:00
Eric Covener
562c9d7876
quick handler in an external file is already enabled, quick handler in block
...
form seems to work just as well.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1187748 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 18:50:45 +00:00
Stefan Fritsch
374a42b9a0
More style fixes, no func changes
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174937 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 18:20:43 +00:00
Stefan Fritsch
1951a037bf
More cleanup: Expand tabs and some more indentation fixes
...
No functional change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174929 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 18:08:42 +00:00
Jim Jagielski
427c85bd23
Cleanup effort in prep for GA push:
...
Trim trailing whitespace... no func change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:39:32 +00:00
Stefan Fritsch
7b61bedb2f
Change the ap_cfg_getline() and ap_cfg_getc() to return an error code.
...
Also:
- Make ap_cfg_getline() return APR_ENOSPC if a config line is too long.
- Add ap_pcfg_strerror() function to convert ap_cfg_getline's return value
into a nice message.
- Adjust definition of ap_configfile_t accordingly.
Not bumping MMN because it has already been bumped today.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1086756 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 21:29:34 +00:00
Brian McCallister
2fed37e78a
apply patch from zhiguo zhao <zhaozg@gmail.com> to significantly improve server scope handling
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1081611 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 23:43:23 +00:00
Stefan Fritsch
affc4cf328
save some memory by using cmd->temp_pool instead of cmd->pool in some places
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1002156 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 13:19:33 +00:00
William A. Rowe Jr
7716d3c3e3
Drop ap_body_to_table due to missing constraints; a DoS waiting
...
for an exploit.
Some mod_lua fan aught to revisit this and provide a sensible
implementation.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953203 13f79535-47bb-0310-9956-ffa450edef68
2010-06-10 03:02:07 +00:00
Stefan Fritsch
ebb62867fb
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
...
advantage of per-module loglevels
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:59:50 +00:00
Daniel Earl Poirier
1f4b662ca5
Add info to debug logging.
...
Avoid null pointer dereference by returning if we can't get
a lua VM.
Move "we got a VM" message to after we know we have one.
Check that we found the lua handler function before trying to
call it.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@939987 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 12:04:27 +00:00
Joe Orton
0aa10f9c58
* modules/lua/: s/apr_strnatcmp/strcmp/ - strnat*cmp functions are
...
for natural order string sorting.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832910 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:39:57 +00:00
William A. Rowe Jr
aa4b1cff0b
fix symbol space and exports
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758428 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 20:09:08 +00:00
Ruediger Pluem
bd4a986cf3
* Remove unused variable
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728621 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 06:45:32 +00:00
Paul Querna
9ad474c462
Use the HTTP_INTERNAL_SERVER_ERROR define instead of 500 directly.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728568 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 01:05:25 +00:00
Paul Querna
2e920b6abf
Fix more ISO C90 forbids mixed declarations and code...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728544 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 22:53:08 +00:00
Paul Querna
ce336c773a
Attempt to make mod_lua compile under a strict c89 compiler by moving all variable declarations to be before code.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728539 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 22:38:07 +00:00
Paul Querna
db88fbdb27
Change apl_get_lua_state to take a apl_vm_spec instead of a filename, and to
...
load the bytecode if it is present, rather than the file, as this gets the
inline config file blocks hooks working again.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728531 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 22:21:54 +00:00
Paul Querna
729bcf2b58
Reformat mod_lua according to the HTTP Server Project C Style Guide:
...
<http://httpd.apache.org/dev/styleguide.html >
No functional changes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728516 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 21:41:52 +00:00
Paul Querna
3cb4269f13
Make all of the hook callbacks static functions.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728511 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 21:31:02 +00:00
Paul Querna
21b46796ac
Fixup lua_config.c with prefix rename, and make mod_lua.c so it compiles again.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728509 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 21:29:11 +00:00
Paul Querna
3948867f51
Rename all files in mod_lua to have a lua_ prefix, as things like 'config.h' are way to generic and will often conflict with other include files.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728508 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 21:27:01 +00:00
Paul Querna
afcdc6d85c
Rename most of the module formally known as mod_wombat to mod_lua conventions, switching apw prefixes for apl.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728506 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 21:17:15 +00:00
Paul Querna
c16fe2875d
Rename mod_wombat -> mod_lua.
...
Note that this isn't a complete transformation yet, but it should basically compile and load as mod_lua.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728494 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 20:48:19 +00:00