Inbound / Outbound connections?

2010-05-11 Thread Ryan Hamilton
Hi There, I'm working on an apache module which would like to act as an input filter for connections (not requests). Initially, I added my module unconditionally via ap_hook_pre_connection. This seemed to work well, but when I attempted to use mod_proxy, I discovered that my module was

Re: Doing a subrequest with ap_run_sub_req

2010-05-11 Thread Some Guy
This would have been in the parent process in the monitor hook or used in the child init hook. The ability to use it in either would be good. I think the easiest approach for me would be to use libCurl or an equivalent simple client side lib. I'm not sure how to properly populate a request_rec*

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread Dan Poirier
On 2010-05-10 at 16:03, William A. Rowe Jr. wr...@rowe-clan.net wrote: On 5/10/2010 2:25 PM, Brian McCallister wrote: ... to LuaHook AccessChecker /path/to/script.lua funcname LuaHook AuthChecker /path/to/script.lua funcname LuaHook CheckUserID /path/to/script.lua funcname Any

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread HyperHacker
On Tue, May 11, 2010 at 06:52, Dan Poirier poir...@pobox.com wrote: On 2010-05-10 at 16:03, William A. Rowe Jr. wr...@rowe-clan.net wrote: On 5/10/2010 2:25 PM, Brian McCallister wrote: ... to LuaHook AccessChecker /path/to/script.lua  funcname LuaHook AuthChecker   /path/to/script.lua  

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread Dan Poirier
On 2010-05-11 at 08:52, Dan Poirier poir...@pobox.com wrote: On 2010-05-10 at 16:03, William A. Rowe Jr. wr...@rowe-clan.net wrote: On 5/10/2010 2:25 PM, Brian McCallister wrote: ... to LuaHook AccessChecker /path/to/script.lua funcname LuaHook AuthChecker /path/to/script.lua funcname

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread HyperHacker
On Tue, May 11, 2010 at 08:47, Dan Poirier poir...@pobox.com wrote: On 2010-05-11 at 08:52, Dan Poirier poir...@pobox.com wrote: On 2010-05-10 at 16:03, William A. Rowe Jr. wr...@rowe-clan.net wrote: On 5/10/2010 2:25 PM, Brian McCallister wrote: ... to LuaHook AccessChecker

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread Akins, Brian
The hook runner itself should just be in lua. Instead of scripts, you write lua modules. If a lua module has a function with the correct names (ie, same as hooks) it uses that: Ie in my module foo function fixups( r ) Would get called at fixups, etc. No need for a state per file,

Re: svn commit: r942899 - /httpd/httpd/branches/2.2.x/STATUS

2010-05-11 Thread Gregg L. Smith
Hi Stefan, WRT Windows, E:\build\httpd-2.2.x-dev\modules\filters\mod_reqtimeout.c(154) : error C2065: 'core_module' : undeclared identifier E:\build\httpd-2.2.x-dev\modules\filters\mod_reqtimeout.c(154) : error C2223: left of '-module_index' must point to struct/union Regards, Gregg

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread Dan Poirier
On 2010-05-11 at 12:55, HyperHacker hyperhac...@gmail.com wrote: On Tue, May 11, 2010 at 08:47, Dan Poirier poir...@pobox.com wrote: I just thought of a problem - right now, the funcname is optional (defaults to handle).  I hate having optional arguments that don't come at the end.  I'd just

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread HyperHacker
On Tue, May 11, 2010 at 20:12, Dan Poirier poir...@pobox.com wrote: On 2010-05-11 at 12:55, HyperHacker hyperhac...@gmail.com wrote: On Tue, May 11, 2010 at 08:47, Dan Poirier poir...@pobox.com wrote: I just thought of a problem - right now, the funcname is optional (defaults to handle).  I

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread Dan Poirier
On 2010-05-11 at 12:59, Akins, Brian brian.ak...@turner.com wrote: The hook runner itself should just be in lua. Instead of scripts, you write lua modules. If a lua module has a function with the correct names (ie, same as hooks) it uses that: Ie in my module foo function fixups( r )

Re: Reducing number of mod_lua hook directives

2010-05-11 Thread William A. Rowe Jr.
On 5/11/2010 9:47 AM, Dan Poirier wrote: LuaHook AccessChecker funcname /path/to/script.lua I just thought of a problem - right now, the funcname is optional (defaults to handle). I hate having optional arguments that don't come at the end. I'd just as soon make it a required argument,

Re: FixedInTrunk keyword?

2010-05-11 Thread Sander Temme
On May 10, 2010, at 11:36 AM, William A. Rowe Jr. wrote: On 5/10/2010 1:28 PM, Daniel Ruggeri wrote: Hi, all. I found this document today stating the following: Each developer is responsible for notifying the mailing list and adding an action item to STATUS when they have an idea for a