/[Apache-SVN]/httpd/httpd/trunk/modules/lua/lua_request.c
ViewVC logotype

Log of /httpd/httpd/trunk/modules/lua/lua_request.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 1921260 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 11 16:20:44 2024 UTC (6 months ago) by jorton
File length: 98149 byte(s)
Diff to previous 1918482 (colored)
mod_lua: Make r.ap_auth_type writable

This completes the option of setting the remote user by the authentication
mechanism which actually verified the user.

One possible usecase is that a proxied (upstream) server performs the
authentication, but the access log of HTTPd does not contain this information.
The upstream server can pass this kind of information back to HTTPd and both
servers will have consistent access logs.

Submitted by: Michael Osipov <michaelo apache.org>
PR: 62497
Github: closes #67


Revision 1918482 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 21 09:48:12 2024 UTC (9 months, 3 weeks ago) by ylavic
File length: 97973 byte(s)
Diff to previous 1918098 (colored)
mpm_event,mod_http2,mod_status: Follow up to r1918257: CONN_STATE_ASYNC_WAITIO.

Per discussion on PR #449, have a separate state for returning the connection
to the MPM to wait for an IO (namely CONN_STATE_ASYNC_WAITIO), rather than
(ab)using CONN_STATE_PROCESSING.

This removes the need for AGAIN added in r1918257 (for now), and AP_MPMQ_CAN_AGAIN
is renamed to AP_MPMQ_CAN_WAITIO.

This is also the state that mod_status accounts for, so rename ->processing
to ->wait_io in process_score (shows as "wait-io" in mod_status and mod_lua).



Revision 1918098 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 1 15:08:46 2024 UTC (10 months, 2 weeks ago) by ylavic
File length: 97979 byte(s)
Diff to previous 1901502 (colored)
mpm_event, mod_status: Separate processing and write completion queues.

As a follow up to r1918022 which handled the new CONN_STATE_PROCESS(ing) and
existing CONN_STATE_WRITE_COMPLETION in the same async queue, let's now have
two separates ones which allows more relevant async accounting in mod_status.

Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING as it's how it will be
called in mod_status.

* include/ap_mmn.h:
  MMN minor bump for process_score->processing counter.

* include/httpd.h:
  Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING.

* include/scoreboard.h:
  Add process_score->processing field.

* include/httpd.h, modules/http/http_core.c, modules/http2/h2_c1.c,
    server/mpm/event/event.c, server/mpm/motorz/motorz.c,
    server/mpm/simple/simple_io.c:
  Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING.

* server/mpm/event/event.c:
  Restore write_completion_q to handle connections in CONN_STATE_WRITE_COMPLETION.
  Use processing_q (renamed from process_q) solely for CONN_STATE_PROCESSING.
  Update process_score->processing according to the length of processing_q.
  
* modules/generators/mod_status.c:
  Show the value of process_score->processing in the stats.



Revision 1901502 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 1 12:36:13 2022 UTC (2 years, 10 months ago) by covener
File length: 97858 byte(s)
Diff to previous 1901496 (colored)
use filters consistently

Revision 1901496 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 1 12:29:46 2022 UTC (2 years, 10 months ago) by covener
File length: 99645 byte(s)
Diff to previous 1898731 (colored)
cast first

Revision 1898731 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 8 13:01:25 2022 UTC (3 years, 1 month ago) by rpluem
File length: 99645 byte(s)
Diff to previous 1898689 (colored)
* Avoid "may be uninitialized" warning

Revision 1898689 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 7 14:07:02 2022 UTC (3 years, 1 month ago) by ylavic
File length: 99619 byte(s)
Diff to previous 1895970 (colored)
mod_lua: Error out if lua_read_body() or lua_write_body() fail.

Otherwise r:requestbody() or r:parsebody() failures might go unnoticed for
the user.



Revision 1895970 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 15 08:28:11 2021 UTC (3 years, 4 months ago) by rpluem
File length: 99630 byte(s)
Diff to previous 1872455 (colored)
* Improve error handling

Revision 1872455 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 7 19:18:13 2020 UTC (5 years, 3 months ago) by covener
File length: 99590 byte(s)
Diff to previous 1837404 (colored)
add r/o iterable tables

The current apr tables exposed support get/set but we cannot get the keys
or iterate. add _table() alternatives




Revision 1837404 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 4 07:47:47 2018 UTC (6 years, 8 months ago) by jailletc36
File length: 97733 byte(s)
Diff to previous 1837225 (colored)
Fix comment in mod_lua and docs.

s/addoutputfilter/add_output_filter/
See PR 62359

Revision 1837225 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 1 11:27:28 2018 UTC (6 years, 8 months ago) by jim
File length: 97740 byte(s)
Diff to previous 1827669 (colored)
Fix PR54848 in a 2.4.x backportable format. Ideally deprecating the use
of ->client in whatever version of 2.4 this is added into would be
more logical.


Revision 1827669 - (view) (download) (annotate) - [select for diffs]
Modified Sat Mar 24 20:05:19 2018 UTC (7 years ago) by jailletc36
File length: 97623 byte(s)
Diff to previous 1800830 (colored)
Fix some typos reported in PR 59998
Most add already been fixed when PR 59990 had been applied on trunk. 

Thx klemens

Revision 1800830 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 4 21:48:41 2017 UTC (7 years, 9 months ago) by rjung
File length: 97623 byte(s)
Diff to previous 1800815 (colored)
Fix new compilation breakage in mod_lua.


Revision 1800815 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 4 20:35:06 2017 UTC (7 years, 9 months ago) by rjung
File length: 97617 byte(s)
Diff to previous 1800809 (colored)
More mod_lua compat for Lua 5.1, 5.2, 5.3.

One last use of luaL_register() with a non-NULL
"name" argument remaining.

Not tested yet.


Revision 1800809 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 4 19:22:23 2017 UTC (7 years, 9 months ago) by rjung
File length: 97617 byte(s)
Diff to previous 1783057 (colored)
mod_lua: Improve compatibility with Lua 5.1, 5.2 and 5.3.
PR58188, PR60831, PR61245.

Still to solve: replace uses of luaL_register().


Revision 1783057 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 15 03:52:57 2017 UTC (8 years, 2 months ago) by jailletc36
File length: 97580 byte(s)
Diff to previous 1782069 (colored)
Save a few bytes in the request pool.

Revision 1782069 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 7 19:48:51 2017 UTC (8 years, 2 months ago) by jchampion
File length: 97576 byte(s)
Diff to previous 1778067 (colored)
check: merge warning fixes from feature branch

Revision 1778067 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 9 22:08:01 2017 UTC (8 years, 3 months ago) by jim
File length: 97576 byte(s)
Diff to previous 1778031 (colored)
https://bz.apache.org/bugzilla/show_bug.cgi?id=58855

Optimize check for empty strings


Revision 1778031 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 9 19:12:22 2017 UTC (8 years, 3 months ago) by jchampion
File length: 97597 byte(s)
Diff to previous 1726086 (colored)
check: merge MPM-DSO fixes from feature branch

Revision 1726086 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 21 20:13:58 2016 UTC (9 years, 2 months ago) by rjung
File length: 97597 byte(s)
Diff to previous 1725548 (colored)
Fix typo in comment (s/patterm/pattern/).


Revision 1725548 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 19 15:43:17 2016 UTC (9 years, 3 months ago) by rjung
File length: 97597 byte(s)
Diff to previous 1725485 (colored)
Added some more log numbers to log statements that
had none.

Those were not detected by the coccinelle script.
Only a few hard cases are remaining now.


Revision 1725485 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 19 12:02:41 2016 UTC (9 years, 3 months ago) by rjung
File length: 97564 byte(s)
Diff to previous 1725392 (colored)
Added many log numbers to log statements that
had none.

Those were not detected by the coccinelle script.


Revision 1725392 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 19 00:03:18 2016 UTC (9 years, 3 months ago) by rjung
File length: 97520 byte(s)
Diff to previous 1657263 (colored)
Added many log numbers to log statements that
had none.

Handled all files in modules/.

I used the coccinelle script provided by Stefan.


Revision 1657263 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 4 14:52:50 2015 UTC (10 years, 2 months ago) by covener
File length: 97295 byte(s)
Diff to previous 1657261 (colored)
followup to r1657261 whitespace only -- reindent body of while loop.

(no change under svn diff -x-w)



Revision 1657261 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 4 14:44:23 2015 UTC (10 years, 2 months ago) by covener
File length: 96836 byte(s)
Diff to previous 1657256 (colored)
  *) SECURITY: CVE-2015-0228 (cve.mitre.org)
     mod_lua: A maliciously crafted websockets PING after a script
     calls r:wsupgrade() can cause a child process crash.
     [Edward Lu <Chaosed0 gmail.com>]

Discovered by Guido Vranken <guidovranken gmail.com>

Submitted by: Edward Lu
Committed by: covener



Revision 1657256 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 4 14:33:51 2015 UTC (10 years, 2 months ago) by covener
File length: 96813 byte(s)
Diff to previous 1641661 (colored)
Fix bit-shifting of websockets frame fields that would yield wrong opcodes
when the FIN bit was set.  Results in PING not being recognized
by mod_lua.  PR57524

Submitted By: Edward Lu
Committed By: covener



Revision 1641661 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 25 18:04:00 2014 UTC (10 years, 4 months ago) by humbedooh
File length: 96395 byte(s)
Diff to previous 1612552 (colored)
mod_lua: Initial attempt at passing on the configuration tree to Lua.

Revision 1612552 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 22 11:57:06 2014 UTC (10 years, 8 months ago) by rjung
File length: 94002 byte(s)
Diff to previous 1612068 (colored)
Switch from lua_objlen() to Lua 5.2 preferred
lua_rawlen(). Define lua_rawlen() in terms of
lua_objlen() when building against older Lua.


Revision 1612068 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 20 09:32:58 2014 UTC (10 years, 9 months ago) by jailletc36
File length: 94002 byte(s)
Diff to previous 1611741 (colored)
Add missing APLOGNO.
Refactor some lines to keep APLOGNO on the same line as ap_log_error, when applicable.
Split lines longer than 80.
Improve alignment.

Revision 1611741 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 18 18:12:12 2014 UTC (10 years, 9 months ago) by humbedooh
File length: 93984 byte(s)
Diff to previous 1610491 (colored)
mod_lua: Don't quote values in cookies; Make IE happy again [#56734]

Revision 1610491 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 14 19:26:00 2014 UTC (10 years, 9 months ago) by jorton
File length: 93992 byte(s)
Diff to previous 1588989 (colored)
SECURITY (CVE-2014-0226): Fix a race condition in scoreboard handling,
which could lead to a heap buffer overflow.  Thanks to Marek Kroemeke
working with HP's Zero Day Initiative for reporting this.

* include/scoreboard.h: Add ap_copy_scoreboard_worker.

* server/scoreboard.c (ap_copy_scoreboard_worker): New function.

* modules/generators/mod_status.c (status_handler): Use it.

* modules/lua/lua_request.c (lua_ap_scoreboard_worker): Likewise.

Reviewed by: trawick, jorton, covener, jim
Submitted by: jorton, covener


Revision 1588989 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 21 21:31:42 2014 UTC (10 years, 11 months ago) by trawick
File length: 93860 byte(s)
Diff to previous 1588807 (colored)
back to c89

Revision 1588807 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 20 17:56:10 2014 UTC (11 years ago) by humbedooh
File length: 93853 byte(s)
Diff to previous 1588761 (colored)
mod_lua: stop complaining

Revision 1588761 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 20 13:58:13 2014 UTC (11 years ago) by humbedooh
File length: 93846 byte(s)
Diff to previous 1582858 (colored)
mod_lua: Use binary strstr for finding endpoints of a multipart object. (How did this EVER work?! *sigh*)

Revision 1582858 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 28 18:38:41 2014 UTC (11 years ago) by humbedooh
File length: 93359 byte(s)
Diff to previous 1582253 (colored)
mod_lua: Redesign the table construction/access mechanism, so we pass on a struct with the request_rec, the table pointer and the table name instead of just the table pointer. This allows us to use the request_rec for logging/editing purposes, as well as inform the user which exact table in the request_rec was modified.

Revision 1582253 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 27 10:58:35 2014 UTC (11 years ago) by humbedooh
File length: 92696 byte(s)
Diff to previous 1572748 (colored)
mod_lua: escape key/value pairs when setting cookies to prevent header splitting with tainted cookies.

Revision 1572748 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 27 21:56:59 2014 UTC (11 years, 1 month ago) by humbedooh
File length: 92564 byte(s)
Diff to previous 1572704 (colored)
this wasn't supposed to be a pointer, thanks Yann!

Revision 1572704 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 27 19:11:54 2014 UTC (11 years, 1 month ago) by humbedooh
File length: 92565 byte(s)
Diff to previous 1572703 (colored)
Remove bad line that snuck into the commit

Revision 1572703 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 27 19:10:55 2014 UTC (11 years, 1 month ago) by humbedooh
File length: 92588 byte(s)
Diff to previous 1570208 (colored)
mod_lua: Only read up to whatever the user defines as max size when using r:parsebody() - if content length is greater, return an error.

Revision 1570208 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 20 14:46:38 2014 UTC (11 years, 1 month ago) by humbedooh
File length: 92374 byte(s)
Diff to previous 1570156 (colored)
mod_lua: Add r:wspeek for checking if data is available to be read.

Revision 1570156 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 20 11:47:47 2014 UTC (11 years, 1 month ago) by humbedooh
File length: 91696 byte(s)
Diff to previous 1567434 (colored)
mod_lua: Slight null-check fix on setcookie.

Revision 1567434 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 11 22:51:20 2014 UTC (11 years, 2 months ago) by humbedooh
File length: 91680 byte(s)
Diff to previous 1567430 (colored)
use err_headers_out for setting cookies instead of headers_out, so they persist on non-2xx/3xx statuses (Thanks to Joe Schaefer for this)

Revision 1567430 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 11 22:45:32 2014 UTC (11 years, 2 months ago) by humbedooh
File length: 91676 byte(s)
Diff to previous 1567221 (colored)
mod_lua: Upgrade r:setcookie to accept a table of arguments, and add domain, path and HttpOnly to the list of options available for setting. PR 56128

Revision 1567221 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 11 16:57:07 2014 UTC (11 years, 2 months ago) by covener
File length: 89606 byte(s)
Diff to previous 1564727 (colored)
mod_lua: Fix r:setcookie() to add, rather than replace,
the Set-Cookie header. PR56105

Submitted By: Kevin J Walters <kjw ms com>, Edward Lu <Chaosed0 gmail com>
Committed By: covener



Revision 1564727 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 5 12:04:14 2014 UTC (11 years, 2 months ago) by humbedooh
File length: 89606 byte(s)
Diff to previous 1555063 (colored)
Fix support for uploading files by using pushlstring instead of pushstring when pushing binary data.

Revision 1555063 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 3 12:09:04 2014 UTC (11 years, 3 months ago) by humbedooh
File length: 87565 byte(s)
Diff to previous 1551968 (colored)
mod_lua: Detect "All" or "None" before putting together a potentially blank (or static) string.

Revision 1551968 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 18 15:02:43 2013 UTC (11 years, 4 months ago) by covener
File length: 87456 byte(s)
Diff to previous 1544820 (colored)
get arpa/inet.h from apr_want.h for htons where applicable



Revision 1544820 - (view) (download) (annotate) - [select for diffs]
Modified Sat Nov 23 15:45:31 2013 UTC (11 years, 4 months ago) by rjung
File length: 87429 byte(s)
Diff to previous 1542493 (colored)
mod_lua: Fix compiler warning by using correct
APR_SIZE_T_FMT and APR_OFF_T_FMT format macro
in debug logging.


Revision 1542493 - (view) (download) (annotate) - [select for diffs]
Modified Sat Nov 16 12:13:39 2013 UTC (11 years, 5 months ago) by trawick
File length: 87366 byte(s)
Diff to previous 1526906 (colored)
apr_file_write_full() simplification (like r1542413 and r1542416)

hopefully I sidestepped the surprising conflation of OK/APR_SUCCESS
in this code


Revision 1526906 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 27 13:56:53 2013 UTC (11 years, 6 months ago) by humbedooh
File length: 87417 byte(s)
Diff to previous 1524321 (colored)
mod_lua: Use a (new) global pool/mutex setup for IVM rather than a per-process pool.

Revision 1524321 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 18 07:48:22 2013 UTC (11 years, 7 months ago) by humbedooh
File length: 87314 byte(s)
Diff to previous 1523432 (colored)
mod_lua: ap_ntoh64 endianess test

Revision 1523432 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 15 12:47:50 2013 UTC (11 years, 7 months ago) by humbedooh
File length: 87253 byte(s)
Diff to previous 1523211 (colored)
mod_lua: Figure out a way to read from SSL connections with WebSockets. Brigades ain't my strong side, so if someone could adjust it a bit, that'd be swell. It _works_, but I'm sure it could be improved upon. Also make r:wsclose() work properly with SSL.

Revision 1523211 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 14 11:05:05 2013 UTC (11 years, 7 months ago) by fuankg
File length: 85748 byte(s)
Diff to previous 1523207 (colored)
Use APR type; rename var.


Revision 1523207 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 14 10:55:10 2013 UTC (11 years, 7 months ago) by fuankg
File length: 85738 byte(s)
Diff to previous 1522030 (colored)
Fixed ap_ntoh64 argument.


Revision 1522030 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 11 20:50:46 2013 UTC (11 years, 7 months ago) by humbedooh
File length: 85737 byte(s)
Diff to previous 1520256 (colored)
mod_lua: Add rudimentary WebSocket support. This is a WIP (emphasis on the W, I and P) and subject to change as the idea surrounding it evolves into something meaningful. But for now, WebSockets, yay! Please do review this!

Revision 1520256 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 5 08:59:10 2013 UTC (11 years, 7 months ago) by humbedooh
File length: 75000 byte(s)
Diff to previous 1520250 (colored)
mod_lua: init cookie as NULL.

Revision 1520250 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 5 08:24:29 2013 UTC (11 years, 7 months ago) by humbedooh
File length: 74981 byte(s)
Diff to previous 1520248 (colored)
remove an unneeded variable I just added, oops.

Revision 1520248 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 5 08:23:05 2013 UTC (11 years, 7 months ago) by humbedooh
File length: 74992 byte(s)
Diff to previous 1519977 (colored)
mod_lua: Use ap_cookie_read for reading cookie values, since it's already there.

Revision 1519977 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 4 10:47:46 2013 UTC (11 years, 7 months ago) by humbedooh
File length: 75138 byte(s)
Diff to previous 1500362 (colored)
Add r:setcookie(key, val, secure, expires) and r:getcookie(key) to the request_rec table.

Revision 1500362 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 7 03:12:52 2013 UTC (11 years, 9 months ago) by fuankg
File length: 73515 byte(s)
Diff to previous 1495270 (colored)
Fix some compiler warnings.


Revision 1495270 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 21 01:51:45 2013 UTC (11 years, 10 months ago) by fuankg
File length: 73491 byte(s)
Diff to previous 1489400 (colored)
Added new r:touch() function.


Revision 1489400 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 4 12:12:14 2013 UTC (11 years, 10 months ago) by fuankg
File length: 72871 byte(s)
Diff to previous 1489199 (colored)
Added new function r.date_parse_rfc() to mod_lua.


Revision 1489199 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 3 22:05:07 2013 UTC (11 years, 10 months ago) by fuankg
File length: 72289 byte(s)
Diff to previous 1488981 (colored)
Fixed crash condition when r.module_info() is called
for modules which dont have directives.
Bug found and fix submitted by gsmith, slightly modified by fuankg.

Revision 1488981 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 3 13:02:46 2013 UTC (11 years, 10 months ago) by fuankg
File length: 72276 byte(s)
Diff to previous 1488773 (colored)
Added new functions r:mkdir(), r:mkrdir(), r:rmdir() to mod_lua.


Revision 1488773 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 2 19:31:16 2013 UTC (11 years, 10 months ago) by fuankg
File length: 70484 byte(s)
Diff to previous 1488480 (colored)
Added new function r:htpassword() to mod_lua.


Revision 1488480 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 1 07:47:29 2013 UTC (11 years, 10 months ago) by fuankg
File length: 69571 byte(s)
Diff to previous 1488115 (colored)
Added optional parameter wanted to r:stat().


Revision 1488115 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 31 07:05:03 2013 UTC (11 years, 10 months ago) by fuankg
File length: 69009 byte(s)
Diff to previous 1487956 (colored)
cosmetics.


Revision 1487956 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 30 18:28:24 2013 UTC (11 years, 10 months ago) by fuankg
File length: 69007 byte(s)
Diff to previous 1486269 (colored)
Remove unneeded exports from mod_lua.


Revision 1486269 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 25 01:14:45 2013 UTC (11 years, 10 months ago) by fuankg
File length: 69071 byte(s)
Diff to previous 1486266 (colored)
Whoops - one empty line too much.


Revision 1486266 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 25 00:59:12 2013 UTC (11 years, 10 months ago) by fuankg
File length: 69070 byte(s)
Diff to previous 1486265 (colored)
Removed a bunch of empty lines.


Revision 1486265 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 25 00:56:22 2013 UTC (11 years, 10 months ago) by fuankg
File length: 69088 byte(s)
Diff to previous 1483348 (colored)
Changed r.sleep(s) to r.usleep(ms).


Revision 1483348 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 16 13:18:48 2013 UTC (11 years, 11 months ago) by fuankg
File length: 68996 byte(s)
Diff to previous 1483343 (colored)
Cast uint16 return value to int.
This fixes a crash on Windows when compiled with MSVC9.


Revision 1483343 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 16 13:11:20 2013 UTC (11 years, 11 months ago) by fuankg
File length: 68897 byte(s)
Diff to previous 1483334 (colored)
Fixed Lua type.


Revision 1483334 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 16 13:00:48 2013 UTC (11 years, 11 months ago) by fuankg
File length: 68896 byte(s)
Diff to previous 1480871 (colored)
Fixed compiler warning; sorted includes.


Revision 1480871 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 10 03:37:06 2013 UTC (11 years, 11 months ago) by fuankg
File length: 68876 byte(s)
Diff to previous 1479718 (colored)
Revert part of r1476482 which disabled fractions of seconds with r.sleep().


Revision 1479718 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 6 23:23:43 2013 UTC (11 years, 11 months ago) by rjung
File length: 68877 byte(s)
Diff to previous 1476785 (colored)
lua header update part 1: EDOESNOTBUILD.

First include mod_lua which sets LUA_COMPAT_ALL,
then lua.h which uses it.

Needed at least to build with lua 5.2.


Revision 1476785 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 28 14:59:46 2013 UTC (11 years, 11 months ago) by fuankg
File length: 68878 byte(s)
Diff to previous 1476601 (colored)
Fixed the base64 functions.


Revision 1476601 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 27 15:26:08 2013 UTC (11 years, 11 months ago) by fuankg
File length: 68673 byte(s)
Diff to previous 1476482 (colored)
Added function to get all entries of a directory.


Revision 1476482 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 27 03:23:55 2013 UTC (11 years, 11 months ago) by fuankg
File length: 67431 byte(s)
Diff to previous 1470157 (colored)
Reduce compiler warnings.
Fixed some types, added casts, or changed to proper function.


Revision 1470157 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 20 12:32:08 2013 UTC (12 years ago) by fuankg
File length: 67261 byte(s)
Diff to previous 1470156 (colored)
Fixed r.started value to return seconds.


Revision 1470156 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 20 12:26:05 2013 UTC (12 years ago) by humbedooh
File length: 67244 byte(s)
Diff to previous 1470155 (colored)
Use a mutex to control read/write for IVM values, so we can reuse the existing structures without running into race conditions.
This should get rid of the need to have MaxConnectionsPerChild set to > 0.

If a new value is set and is a string, we either use the existing varbuf or grow it accordingly.

Revision 1470155 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 20 11:20:22 2013 UTC (12 years ago) by humbedooh
File length: 66762 byte(s)
Diff to previous 1470117 (colored)
use ap_varbuf instead of allocating new strings each time we override an old one.
This uses leaks less memory, but it's still not perfect (but it's a start - maybe I need to use a mutex for this, to override the original object without running into race conditions)

Revision 1470117 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 20 07:18:23 2013 UTC (12 years ago) by humbedooh
File length: 66592 byte(s)
Diff to previous 1469844 (colored)
r.started already exists as a built in variable, so let's not make it a function as well.

Revision 1469844 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 19 14:28:25 2013 UTC (12 years ago) by humbedooh
File length: 66944 byte(s)
Diff to previous 1469751 (colored)
exists_config_define should return a boolean, not a number, or it will always evaluate to true.

Revision 1469751 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 19 09:04:52 2013 UTC (12 years ago) by humbedooh
File length: 66944 byte(s)
Diff to previous 1469744 (colored)
remove redundant code

Revision 1469744 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 19 08:46:28 2013 UTC (12 years ago) by humbedooh
File length: 67027 byte(s)
Diff to previous 1467822 (colored)
Remove lua_ap_banner, as it's no longer being used.
Add ivm_get/ivm_set for Inter-VM data transfer. This allows multiple VMs across a process to share data without having to resort to external databases or filesystems. This is a work in progress, and I have yet to work out a proper way of resetting a variable without causing a memory leak (this could be done by allocating a new pool for each object, but I'm trying to see if there's a more efficient way). Comments, ideas etc are most welcome.

Revision 1467822 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 14 20:03:07 2013 UTC (12 years ago) by fuankg
File length: 65155 byte(s)
Diff to previous 1467721 (colored)
Only ask for the stat info we really use.


Revision 1467721 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 14 02:53:36 2013 UTC (12 years ago) by fuankg
File length: 65157 byte(s)
Diff to previous 1467719 (colored)
Return early with an error instead of returning an incomplete match table.


Revision 1467719 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 14 02:50:19 2013 UTC (12 years ago) by fuankg
File length: 64855 byte(s)
Diff to previous 1467718 (colored)
Whoops, one AP_MAX_REG_MATCH not caught.


Revision 1467718 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 14 02:36:23 2013 UTC (12 years ago) by fuankg
File length: 64851 byte(s)
Diff to previous 1467572 (colored)
Decouple mod_lua max regex matches from AP_MAX_REG_MATCH.
Bumped the default to 25 matches; this default can be
overwritten with a CLFAGS define.


Revision 1467572 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 13 07:45:09 2013 UTC (12 years ago) by humbedooh
File length: 64774 byte(s)
Diff to previous 1467571 (colored)
silly me

Revision 1467571 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 13 07:40:42 2013 UTC (12 years ago) by humbedooh
File length: 64771 byte(s)
Diff to previous 1467558 (colored)
fix some bugs reported by fuankg on Windows release builds.

Revision 1467558 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 13 06:33:07 2013 UTC (12 years ago) by humbedooh
File length: 64474 byte(s)
Diff to previous 1467557 (colored)
fix up r.banner and r.port so they work like variables and not functions (seems to have already been put in there), duplicate??

Revision 1467557 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 13 06:24:11 2013 UTC (12 years ago) by humbedooh
File length: 64805 byte(s)
Diff to previous 1467427 (colored)
fix docs on regex matching, change the actual ordering of arguments to match the docs, and enforce AP_MAX_REG_MATCH in the function, should it somehow return more matches than we have allocated

Revision 1467427 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 12 19:15:39 2013 UTC (12 years ago) by fuankg
File length: 64780 byte(s)
Diff to previous 1467409 (colored)
MOdified r:stat() to return finer time granularity.
the atime, mtime, ctime, size values ar now in mod_lua
64bit as received from apr_stat().


Revision 1467409 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 12 18:45:46 2013 UTC (12 years ago) by fuankg
File length: 64875 byte(s)
Diff to previous 1467188 (colored)
Fixed typo; followup to r1467188.


Revision 1467188 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 12 07:29:56 2013 UTC (12 years ago) by fuankg
File length: 64875 byte(s)
Diff to previous 1466743 (colored)
Added optional parameter flags to lua_ap_regex().
This enables to call r:regex() with a flag to do
case-insensitive matches.


Revision 1466743 - (view) (download) (annotate) - [select for diffs]
Modified Thu Apr 11 00:19:30 2013 UTC (12 years ago) by fuankg
File length: 64808 byte(s)
Diff to previous 1445609 (colored)
Fixed Lua r:stat() time values.


Revision 1445609 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 13 14:02:43 2013 UTC (12 years, 2 months ago) by humbedooh
File length: 64717 byte(s)
Diff to previous 1434065 (colored)
r:regex was not returning the last captured group, as we were one off on how many captures to push to the table.

Revision 1434065 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 16 18:00:04 2013 UTC (12 years, 3 months ago) by humbedooh
File length: 64714 byte(s)
Diff to previous 1433967 (colored)
If r:regex does not match, only return 'false', don't try to create error messages, because there should not be any - it's either match or no match here at this point.

Revision 1433967 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 16 14:52:52 2013 UTC (12 years, 3 months ago) by humbedooh
File length: 64810 byte(s)
Diff to previous 1430225 (colored)
Using the traditional way of declaring Lua functions does not seem to work with NetWare (and possibly Windows too?)
Thus, at least until we find a smarter way, we have to move the r:* functions into lua_request.c and connect them from there.
The only functional change is that the transferred functions are now called through the request object instead of the apache2 package.
The distinction between what merited it to be in either structure seems very vague, so for now, we'll keep the HTTP return codes in the apache2 table, and the request/server functions in the request object.

Revision 1430225 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 8 11:42:50 2013 UTC (12 years, 3 months ago) by humbedooh
File length: 35291 byte(s)
Diff to previous 1424938 (colored)
Add database features for mod_lua (apr_dbd + mod_dbd).
See documentation update for API and examples.

Revision 1424938 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 21 14:49:06 2012 UTC (12 years, 3 months ago) by humbedooh
File length: 35137 byte(s)
Diff to previous 1424723 (colored)
Remove reference to top secret project! You did not see this commit message ;)

Revision 1424723 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 20 21:52:03 2012 UTC (12 years, 3 months ago) by humbedooh
File length: 35158 byte(s)
Diff to previous 1422072 (colored)
mod_lua: Fix multipart post parsing, so it doesn't include random bytes at the end.

Revision 1422072 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 14 20:44:41 2012 UTC (12 years, 4 months ago) by humbedooh
File length: 35140 byte(s)
Diff to previous 1421780 (colored)
mod_lua: Fix Windows compatibility issues and remove an unused variable. Thanks, Gregg!

Revision 1421780 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 14 10:15:37 2012 UTC (12 years, 4 months ago) by humbedooh
File length: 35143 byte(s)
Diff to previous 1420286 (colored)
mod_lua: Fix signedness/other small bugs as per cjaillet/fuankg's emails - thanks guys :)

Revision 1420286 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 11 17:09:40 2012 UTC (12 years, 4 months ago) by humbedooh
File length: 35252 byte(s)
Diff to previous 1420176 (colored)
lua_request.c: Add support for parsing multipart form data via r:parsebody. This is a bit RFC-centric, suggestions are most welcome.

Revision 1420176 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 11 14:06:41 2012 UTC (12 years, 4 months ago) by humbedooh
File length: 32185 byte(s)
Diff to previous 1370158 (colored)
mod_lua/lua_request.c: Make r:write return the return value of ap_rwrite, so mod_lua can check for success/failure in writing.

Revision 1370158 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 7 10:02:27 2012 UTC (12 years, 8 months ago) by humbedooh
File length: 32142 byte(s)
Diff to previous 1361298 (colored)
mod_lua: Add r:flush, r:sendfile as well as additional request information in the request_rec structure

Revision 1361298 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 13 16:59:07 2012 UTC (12 years, 9 months ago) by humbedooh
File length: 27312 byte(s)
Diff to previous 1352047 (colored)
- Define LUA_COMPAT_ALL so mod_lua will be compatible with Lua 5.2
- Add an optional integer argument for parsebody, specifying the maximum size of POST that will be accepted.

Revision 1352047 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 20 11:20:36 2012 UTC (12 years, 10 months ago) by humbedooh
File length: 27252 byte(s)
Diff to previous 1351014 (colored)
Add the missing parsebody function to mod_lua, for parsing POST data.
PR 53064.

Revision 1351014 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 16 22:41:01 2012 UTC (12 years, 10 months ago) by sf
File length: 26140 byte(s)
Diff to previous 1351013 (colored)
mod_lua: Add a few missing request_rec fields. Rename remote_ip to
client_ip to match conn_rec


Revision 1351013 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 16 22:39:54 2012 UTC (12 years, 10 months ago) by sf
File length: 25202 byte(s)
Diff to previous 1300766 (colored)
allow tail call optimization in log methods, remove foo method



Revision 1300766 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 14 22:21:50 2012 UTC (13 years, 1 month ago) by sf
File length: 25324 byte(s)
Diff to previous 1214015 (colored)
Fix some typos


Revision 1214015 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 14 01:10:52 2011 UTC (13 years, 4 months ago) by minfrin
File length: 25323 byte(s)
Diff to previous 1209766 (colored)
Further clarify the naming of the entity that directly connects to us by
calling that entity a client instead of a peer.


Revision 1209766 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 2 23:02:04 2011 UTC (13 years, 4 months ago) by sf
File length: 25321 byte(s)
Diff to previous 1206291 (colored)
Add lots of unique tags to error log messages


Revision 1206291 - (view) (download) (annotate) - [select for diffs]
Modified Fri Nov 25 19:42:04 2011 UTC (13 years, 4 months ago) by minfrin
File length: 25201 byte(s)
Diff to previous 1200580 (colored)
Introduce a per connection "peer_ip" and a per request "client_ip" to
distinguish between the raw IP address of the connection and the effective
IP address of the request.


Revision 1200580 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 10 21:45:27 2011 UTC (13 years, 5 months ago) by jorton
File length: 25203 byte(s)
Diff to previous 1200432 (colored)
* 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.


Revision 1200432 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 10 17:10:17 2011 UTC (13 years, 5 months ago) by covener
File length: 24961 byte(s)
Diff to previous 1199056 (colored)
expose r:trace1-8


Revision 1199056 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 8 01:53:15 2011 UTC (13 years, 5 months ago) by covener
File length: 23527 byte(s)
Diff to previous 1199028 (colored)
mod_lua: Expose SSL variables via r:ssl_var_lookup()

Revision 1199028 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 8 00:25:47 2011 UTC (13 years, 5 months ago) by covener
File length: 23009 byte(s)
Diff to previous 1197838 (colored)
correct return val, the char* is pushed on the lua stack.


Revision 1197838 - (view) (download) (annotate) - [select for diffs]
Modified Sat Nov 5 00:16:36 2011 UTC (13 years, 5 months ago) by covener
File length: 23012 byte(s)
Diff to previous 1195172 (colored)
provide ap_escape_html as r:escape_html() 


Revision 1195172 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 30 14:39:20 2011 UTC (13 years, 5 months ago) by covener
File length: 22617 byte(s)
Diff to previous 1195168 (colored)
make r.handler and r.proxyreq readable too



Revision 1195168 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 30 14:30:04 2011 UTC (13 years, 5 months ago) by covener
File length: 21917 byte(s)
Diff to previous 1195167 (colored)
add constants for PROXYREQ_* to the apache2 global, allow r.proxyreq and
r.handler to be writable.



Revision 1195167 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 30 14:19:45 2011 UTC (13 years, 5 months ago) by covener
File length: 21612 byte(s)
Diff to previous 1194997 (colored)
alphabetize writable lua properties and use strcmp() for the oddball that's
just testing quality of "user".



Revision 1194997 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 29 19:42:32 2011 UTC (13 years, 5 months ago) by covener
File length: 21618 byte(s)
Diff to previous 1187743 (colored)
make r.args read/write for rewrite refugees.



Revision 1187743 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 22 18:07:43 2011 UTC (13 years, 5 months ago) by covener
File length: 21458 byte(s)
Diff to previous 1180332 (colored)
expose ap_construct_url to lua scripts



Revision 1180332 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 8 07:50:06 2011 UTC (13 years, 6 months ago) by sf
File length: 21043 byte(s)
Diff to previous 1174751 (colored)
Fix format string bugs in mod_lua. Found by gcc and pointed out by Igor Galic.


Revision 1174751 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 23 13:39:32 2011 UTC (13 years, 6 months ago) by jim
File length: 21019 byte(s)
Diff to previous 1150179 (colored)
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change



Revision 1150179 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 23 17:49:04 2011 UTC (13 years, 8 months ago) by sf
File length: 21033 byte(s)
Diff to previous 967143 (colored)
Merge branch revert-ap-ldap:
Revert ap_ldap integration due to veto by Graham Leggett

Mailing list threads:
http://mail-archives.apache.org/mod_mbox/httpd-dev/201106.mbox/%3C4192DC1D-C0B9-42BB-B614-C3A41290F18B@sharp.fm%3E
http://mail-archives.apache.org/mod_mbox/httpd-dev/201107.mbox/%3C4E15E51E.4090700@rowe-clan.net%3E


Revision 967143 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 23 15:52:37 2010 UTC (14 years, 8 months ago) by brianm
File length: 21033 byte(s)
Diff to previous 965314 (colored)
expose subprocess_env on lua request object

Revision 965314 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 18 23:02:29 2010 UTC (14 years, 9 months ago) by fuankg
File length: 20806 byte(s)
Diff to previous 953216 (colored)
Added casts to make strict compilers happy.


Revision 953216 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 10 04:42:52 2010 UTC (14 years, 10 months ago) by wrowe
File length: 20714 byte(s)
Diff to previous 953203 (colored)
Mop up more than a dozen const'ness faults

Revision 953203 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 10 03:02:07 2010 UTC (14 years, 10 months ago) by wrowe
File length: 20708 byte(s)
Diff to previous 951895 (colored)
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.

Revision 951895 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 6 16:59:50 2010 UTC (14 years, 10 months ago) by sf
File length: 21176 byte(s)
Diff to previous 951894 (colored)
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels


Revision 951894 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 6 16:56:08 2010 UTC (14 years, 10 months ago) by sf
File length: 21152 byte(s)
Diff to previous 833141 (colored)
Fix some modules to make them compile with per-module loglevels.


Revision 833141 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 5 19:31:27 2009 UTC (15 years, 5 months ago) by brianm
File length: 21132 byte(s)
Diff to previous 832910 (colored)
expose r->notes to lua

Revision 832910 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 4 23:39:57 2009 UTC (15 years, 5 months ago) by jorton
File length: 20939 byte(s)
Diff to previous 832905 (colored)
* modules/lua/: s/apr_strnatcmp/strcmp/ - strnat*cmp functions are
  for natural order string sorting.


Revision 832905 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 4 23:28:22 2009 UTC (15 years, 5 months ago) by brianm
File length: 20967 byte(s)
Diff to previous 832901 (colored)
allow setting of r->user from lua

Revision 832901 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 4 23:22:15 2009 UTC (15 years, 5 months ago) by brianm
File length: 20800 byte(s)
Diff to previous 808727 (colored)
map r->err_headers_out into lua

Revision 808727 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 28 01:40:44 2009 UTC (15 years, 7 months ago) by wrowe
File length: 20567 byte(s)
Diff to previous 758428 (colored)
push_connection, push_server also targetted for export, no?

Revision 758428 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 25 20:09:08 2009 UTC (16 years ago) by wrowe
File length: 20535 byte(s)
Diff to previous 748949 (colored)
fix symbol space and exports

Revision 748949 - (view) (download) (annotate) - [select for diffs]
Modified Sun Mar 1 01:46:17 2009 UTC (16 years, 1 month ago) by brianm
File length: 20449 byte(s)
Diff to previous 748948 (colored)
remove leftover debug statement

Revision 748948 - (view) (download) (annotate) - [select for diffs]
Modified Sun Mar 1 01:37:44 2009 UTC (16 years, 1 month ago) by brianm
File length: 20492 byte(s)
Diff to previous 748946 (colored)
change syntax for getting document root in mod_lua to r.document_root, suggested by Bertrand Mansion

Revision 748946 - (view) (download) (annotate) - [select for diffs]
Modified Sun Mar 1 01:25:27 2009 UTC (16 years, 1 month ago) by brianm
File length: 20539 byte(s)
Diff to previous 737293 (colored)
change r.content_type = "something" to use ap_set_content_type, which it should as was pointed out by Bertrand Mansion

Revision 737293 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 24 03:10:40 2009 UTC (16 years, 2 months ago) by brianm
File length: 21161 byte(s)
Diff to previous 729194 (colored)
changes headers_in and headers_out handling in mod_lua to map apr_table_t instances as boxed pointers

Revision 729194 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 24 02:22:38 2008 UTC (16 years, 3 months ago) by pquerna
File length: 21006 byte(s)
Diff to previous 728544 (colored)
Add in the ability to fetch from headers_in.


Revision 728544 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 21 22:53:08 2008 UTC (16 years, 3 months ago) by pquerna
File length: 20535 byte(s)
Diff to previous 728540 (colored)
Fix more ISO C90 forbids mixed declarations and code...


Revision 728540 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 21 22:40:43 2008 UTC (16 years, 3 months ago) by pquerna
File length: 20433 byte(s)
Diff to previous 728539 (colored)
Rename rstack_dump to apl_rstack_dump.


Revision 728539 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 21 22:38:07 2008 UTC (16 years, 3 months ago) by pquerna
File length: 20421 byte(s)
Diff to previous 728516 (colored)
Attempt to make mod_lua compile under a strict c89 compiler by moving all variable declarations to be before code.


Revision 728516 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 21 21:41:52 2008 UTC (16 years, 3 months ago) by pquerna
File length: 20407 byte(s)
Diff to previous 728508 (colored)
Reformat mod_lua according to the HTTP Server Project C Style Guide:
  <http://httpd.apache.org/dev/styleguide.html>
No functional changes.


Revision 728508 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 21 21:27:01 2008 UTC (16 years, 3 months ago) by pquerna
File length: 20209 byte(s)
Copied from: httpd/httpd/trunk/modules/lua/request.c revision 728506
Diff to previous 728506 (colored)
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.


Revision 728506 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 21 21:17:15 2008 UTC (16 years, 3 months ago) by pquerna
Original Path: httpd/httpd/trunk/modules/lua/request.c
File length: 20209 byte(s)
Diff to previous 728494 (colored)
Rename most of the module formally known as mod_wombat to mod_lua conventions, switching apw prefixes for apl.


Revision 728494 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 21 20:48:19 2008 UTC (16 years, 3 months ago) by pquerna
Original Path: httpd/httpd/trunk/modules/lua/request.c
File length: 20209 byte(s)
Diff to previous 728484 (colored)
Rename mod_wombat -> mod_lua.

Note that this isn't a complete transformation yet, but it should basically compile and load as mod_lua.


Revision 728484 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 21 19:54:55 2008 UTC (16 years, 4 months ago) by wrowe
Original Path: httpd/httpd/trunk/modules/wombat/request.c
File length: 20212 byte(s)
Diff to previous 723843 (colored)
text... wonderful editable text

Revision 723843 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 5 20:09:32 2008 UTC (16 years, 4 months ago) by pquerna
Original Path: httpd/httpd/trunk/modules/wombat/request.c
File length: 20212 byte(s)
Copied from: httpd/httpd/branches/wombat-integration/modules/wombat/request.c revision 723841
Diff to previous 723654 (colored)
Merge mod_wombat from the wombat branch:
 <https://svn.apache.org/repos/asf/httpd/httpd/branches/wombat-integration>
Into trunk.


Revision 723654 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 5 08:37:56 2008 UTC (16 years, 4 months ago) by pquerna
Original Path: httpd/httpd/branches/wombat-integration/modules/wombat/request.c
File length: 20212 byte(s)
Diff to previous 723631 (colored)
Finish removing dependecy on apreq


Revision 723631 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 5 07:17:07 2008 UTC (16 years, 4 months ago) by pquerna
Original Path: httpd/httpd/branches/wombat-integration/modules/wombat/request.c
File length: 20273 byte(s)
Diff to previous 723615 (colored)
Use ap_args_to_table instead of apreq for GET query params.


Revision 723615 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 5 06:45:13 2008 UTC (16 years, 4 months ago) by pquerna
Original Path: httpd/httpd/branches/wombat-integration/modules/wombat/request.c
File length: 20316 byte(s)
Copied from: httpd/mod_wombat/trunk/request.c revision 723612
Diff to previous 712553 (colored)
Initial import of mod_wombat to the modules directory.


Revision 712553 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 9 20:46:13 2008 UTC (16 years, 5 months ago) by pquerna
Original Path: httpd/mod_wombat/trunk/request.c
File length: 20316 byte(s)
Diff to previous 712545 (colored)
c89 support: convert all c++ style // comments to c89 /* */ style. no functional changes.


Revision 712545 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 9 20:00:53 2008 UTC (16 years, 5 months ago) by pgollucci
Original Path: httpd/mod_wombat/trunk/request.c
File length: 20208 byte(s)
Diff to previous 711678 (colored)
s,check_request_rec,apw_check_request_rec,g in request.c

Noticed by: ApacheCon2008 US presentation



Revision 711678 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 5 19:50:47 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 20168 byte(s)
Diff to previous 711673 (colored)
reformat to avoid line breaks

Revision 711673 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 5 19:31:47 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 22157 byte(s)
Diff to previous 711671 (colored)
slighty more clear debug logging

Revision 711671 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 5 19:27:37 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 22175 byte(s)
Diff to previous 711670 (colored)
a couple docs

Revision 711670 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 5 19:21:52 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 22072 byte(s)
Diff to previous 711666 (colored)
flag unimplemented apr_table_t dispatch

Revision 711666 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 5 19:15:43 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 21975 byte(s)
Diff to previous 711665 (colored)
r:add_output_filter(..) is back

Revision 711665 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 5 19:13:25 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 21763 byte(s)
Diff to previous 711639 (colored)
new request dispatch in and tests pass again!

Revision 711639 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 5 18:03:42 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 17049 byte(s)
Diff to previous 711479 (colored)
still broken, but getting way better!

Revision 711479 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 5 00:30:07 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 15684 byte(s)
Diff to previous 709988 (colored)
changing how dispatch works to be far less sucky, tests fail at the moment, but I am checking in anyway as I don't want to lose work

Revision 709988 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 2 23:11:43 2008 UTC (16 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 13694 byte(s)
Diff to previous 671609 (colored)
add r:document_root() to allow querying the document root

Revision 671609 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 25 17:37:57 2008 UTC (16 years, 9 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 13455 byte(s)
Diff to previous 651865 (colored)
patch from DarkGod to expose hostname and subprocess_env

Revision 651865 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 26 22:06:14 2008 UTC (16 years, 11 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 13317 byte(s)
Diff to previous 651854 (colored)
Clean up some of the APR mappings


Revision 651854 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 26 20:07:03 2008 UTC (16 years, 11 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 13503 byte(s)
Diff to previous 611976 (colored)
Fix a case of int being used in place of size_t ... wonder if it should be osmehting like apr_size_t ?


Revision 611976 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 15 00:13:54 2008 UTC (17 years, 3 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 13500 byte(s)
Diff to previous 534922 (colored)
Patch from Matthew Burke to provide an r:write(String) method which
writes raw bytes to the output


Revision 534922 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 3 16:09:38 2007 UTC (17 years, 11 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 13238 byte(s)
Diff to previous 534582 (colored)
Patch from Brian Akins: Adds ability to get to r.connection and r.server


Revision 534582 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 2 18:33:59 2007 UTC (17 years, 11 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11803 byte(s)
Diff to previous 528207 (colored)
Patch from Brian Akins

- use hooks for:
-- wombat_open - called by create_vm
-- wombat_request - called instead of apw_request_push

- added apr_lua.c and .h - only handles tables for now. Can be extended to do
more in future.




Revision 528207 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 29 23:21:28 2006 UTC (18 years, 3 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11486 byte(s)
Diff to previous 528198 (colored)
Newlines at ends of files to satisfy cranky compilers


Revision 528198 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 27 03:09:47 2006 UTC (18 years, 4 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11484 byte(s)
Diff to previous 528183 (colored)
Server scope lua_State caching :-)


Revision 528183 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 9 04:50:49 2006 UTC (18 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11447 byte(s)
Diff to previous 528182 (colored)
Undo some extra string copying


Revision 528182 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 9 04:02:37 2006 UTC (18 years, 5 months ago) by martin
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11755 byte(s)
Diff to previous 528181 (colored)
- fixed segfault in req_log_at
- removed log messages



Revision 528181 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 9 02:20:07 2006 UTC (18 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11820 byte(s)
Diff to previous 528179 (colored)
Maybe fix the memory dealloc error by duping things some more. Argh


Revision 528179 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 9 00:56:48 2006 UTC (18 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11512 byte(s)
Diff to previous 528174 (colored)
Strange segfault issue where cleaning the lua state up at the request memory pool cleanup point was segfaulting. Changed the log messages to copy the strings obtained from lua rather than printing them directly, segfaults went away. Not sure *why* this fixed it.


Revision 528174 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 8 23:03:23 2006 UTC (18 years, 5 months ago) by martin
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11490 byte(s)
Diff to previous 528159 (colored)
- fixed race condition in caching code
- hooks.lua does no longer depend on fs layout
- alias munging happens after all translate_name hooks
- made uri writable
- log messages



Revision 528159 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 7 06:44:42 2006 UTC (18 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 11182 byte(s)
Diff to previous 528156 (colored)
Starting on hooks, did basics for translate name

Need to bef up error handling for non handler thngs


Revision 528156 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 28 06:42:30 2006 UTC (18 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 10855 byte(s)
Diff to previous 528149 (colored)
Starting to muck with output filters


Revision 528149 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 27 19:02:15 2006 UTC (18 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 10429 byte(s)
Diff to previous 528140 (colored)
Change license header


Revision 528140 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 24 04:58:05 2006 UTC (18 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 10268 byte(s)
Diff to previous 528139 (colored)
Expose request_rec fields


Revision 528139 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 24 04:30:29 2006 UTC (18 years, 5 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 9890 byte(s)
Diff to previous 528137 (colored)
A way to get nice table-like access to request_rec fields


Revision 528137 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 20 17:04:58 2006 UTC (18 years, 6 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 9564 byte(s)
Diff to previous 528136 (colored)
Playing performance gamest


Revision 528136 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 20 16:44:31 2006 UTC (18 years, 6 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 9582 byte(s)
Diff to previous 528135 (colored)
In-memory cache, not safe yet


Revision 528135 - (view) (download) (annotate) - [select for diffs]
Added Mon Oct 16 19:05:31 2006 UTC (18 years, 6 months ago) by brianm
Original Path: httpd/mod_wombat/trunk/request.c
File length: 9579 byte(s)
Add convenience aliasing directive
Allow r.status = $code to set http response status


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26