Stefan Fritsch
1f7417309f
add support for trace loglevels in mod_lua
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1032084 13f79535-47bb-0310-9956-ffa450edef68
2010-11-06 14:48:43 +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
Brian McCallister
12a304c223
expose subprocess_env on lua request object
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@967143 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 15:52:37 +00:00
Guenter Knauf
5e8988e256
Removed obsolete include paths from NetWare makefiles.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@966904 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 23:38:58 +00:00
Guenter Knauf
0cda847081
Added casts to make strict compilers happy.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@965314 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 23:02:29 +00:00
Rainer Jung
c2fb104731
No need for trailing semicolon after APR_DECLARE_EXTERNAL_HOOK.
...
gcc complains when using -pedantic.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953351 13f79535-47bb-0310-9956-ffa450edef68
2010-06-10 15:32:33 +00:00
William A. Rowe Jr
f0d46a36f1
Mop up more than a dozen const'ness faults
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953216 13f79535-47bb-0310-9956-ffa450edef68
2010-06-10 04:42:52 +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
Stefan Fritsch
9d791e0e60
Fix some modules to make them compile with per-module loglevels.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951894 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:56:08 +00:00
Jeff Trawick
1477c61e6f
odd assortment of spelling fixes
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@947651 13f79535-47bb-0310-9956-ffa450edef68
2010-05-24 14:26:49 +00:00
Daniel Earl Poirier
8f18c0b43d
Note that it would be nice if we could write authn and authz providers
...
in lua.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@941734 13f79535-47bb-0310-9956-ffa450edef68
2010-05-06 13:58:58 +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
Daniel Earl Poirier
c9fc37b35b
Log error if unable to load lua file.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@939986 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 12:02:53 +00:00
Daniel Earl Poirier
f07bb6b918
An uninitialized pointer in ap_lua_mapped_handler_spec was causing
...
seg faults in lua.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@939980 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 11:43:55 +00:00
Daniel Earl Poirier
94a86a5c96
Change references from mod_wombat to mod_lua.
...
Remove references to no-longer-needed pre-req, mod_apreq2.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@939703 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 15:05:07 +00:00
Rainer Jung
76709be016
Use "=" instead of "==" in test condition for
...
improved shell compatibility.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@888546 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 19:46:10 +00:00
Brian McCallister
796d34a469
expose r->notes to lua
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@833141 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 19:31: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
Brian McCallister
4ae86f20e4
allow setting of r->user from lua
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832905 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:28:22 +00:00
Brian McCallister
813ff64ace
map r->err_headers_out into lua
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832901 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:22:15 +00:00
William A. Rowe Jr
0da446e9ea
push_connection, push_server also targetted for export, no?
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808727 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 01:40:44 +00:00
William A. Rowe Jr
a38b9f9117
Not static; trusting this targetted for export?
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808726 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 01:39:50 +00:00
William A. Rowe Jr
5181635ab3
Always make mod_*.h files available where they exist, modpath by modpath
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808722 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 01:27:46 +00:00
Guenter Knauf
9bd30c378e
skip another lua source file with NetWare build.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@793593 13f79535-47bb-0310-9956-ffa450edef68
2009-07-13 14:31:07 +00:00
Guenter Knauf
cda78b35b3
and another NetWare build fix for mod_lua.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@793449 13f79535-47bb-0310-9956-ffa450edef68
2009-07-13 03:00:59 +00:00
Guenter Knauf
3aa02d23cc
final NetWare mod_lua build fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@793442 13f79535-47bb-0310-9956-ffa450edef68
2009-07-13 01:44:24 +00:00
Guenter Knauf
434b5837cc
added NetWare makefile for mod_lua.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@793432 13f79535-47bb-0310-9956-ffa450edef68
2009-07-12 23:49:57 +00:00
Brian McCallister
c194519800
change use of luaL_openlib to luaL_register via path from Arfrever Frehtes Taifersar Arahesis
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@784644 13f79535-47bb-0310-9956-ffa450edef68
2009-06-15 03:10:06 +00:00
Brian McCallister
3268b2daf4
change use of luaL_openlib to luaL_register via path from Arfrever Frehtes Taifersar Arahesis
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@784643 13f79535-47bb-0310-9956-ffa450edef68
2009-06-15 03:10:03 +00:00
Brian McCallister
018bda3602
remove unusable test file
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@784642 13f79535-47bb-0310-9956-ffa450edef68
2009-06-15 03:10:00 +00:00
William A. Rowe Jr
6ea0ab9e0a
Add . 'default' test first before searching paths, to determine if the
...
lua.h, liblua5.1, liblua-5.1 or liblua can be resolved. This avoids
adding strange paths on fedora/redhat, and choosing the wrong /lib[64]
flavor.
Also ensure -lm is always added to the actual linked libraries, avoiding
a LoadModule failure on fedora/redhat. Still should first try to search
for pkg-config lua settings, but note this would break fedora until that
build hackery is corrected, c.f. the bug
https://bugzilla.redhat.com/show_bug.cgi?id=499238
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@772864 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 06:47:33 +00:00
William A. Rowe Jr
180e2dff26
headers are nice too
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758647 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 13:54:21 +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
William A. Rowe Jr
3a8d6ff515
add lua
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758427 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 20:07:47 +00:00
Brian McCallister
0b298347d5
remove leftover debug statement
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@748949 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 01:46:17 +00:00
Brian McCallister
b059de05d2
change syntax for getting document root in mod_lua to r.document_root, suggested by Bertrand Mansion
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@748948 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 01:37:44 +00:00
Brian McCallister
d68a529544
change r.content_type = "something" to use ap_set_content_type, which it should as was pointed out by Bertrand Mansion
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@748946 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 01:25:27 +00:00
Brian McCallister
0f4cf6e591
changes headers_in and headers_out handling in mod_lua to map apr_table_t instances as boxed pointers
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@737293 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 03:10:40 +00:00
Brian McCallister
bdb54f2aeb
minor edit to lua readme
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@737290 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 01:50:36 +00:00
Rainer Jung
8eb168a906
Use LDADD mechanism to only link mod_serf resp.
...
mod_lua to libserf resp. liblua.
No need to include this dependency in all other
modules and binaries.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@730876 13f79535-47bb-0310-9956-ffa450edef68
2009-01-03 00:20:14 +00:00
Rainer Jung
c662d88e8f
Use APACHE_HELP_STRING() for --enable-luajit in configure
...
to allow automatic indentation in configure help output.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@730686 13f79535-47bb-0310-9956-ffa450edef68
2009-01-02 09:47:54 +00:00
Paul Querna
fb4dd06b2d
Add in the ability to fetch from headers_in.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@729194 13f79535-47bb-0310-9956-ffa450edef68
2008-12-24 02:22:38 +00:00
Paul Querna
4fbf0b5ff3
Hack to add basic support for LuaJIT.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728779 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 21:15:32 +00:00
Ruediger Pluem
94db5b0012
* Comment out unused pstack_dump for the time being until it is used, a better
...
compile time conditional is found or it is removed from the code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728623 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 06:47:42 +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
a36f6f7048
Rename rstack_dump to apl_rstack_dump.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728540 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 22:40:43 +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