Re: Unit testing

2008-12-12 Thread Jim Jagielski
Look at the httpd-test/framework package: http://svn.apache.org/viewvc/httpd/test/framework/trunk/ On Dec 12, 2008, at 8:54 AM, Kevac Marko wrote: Hello. What is the best way to write unit tests for C apache modules? Maybe some frameworks? -- С уважением, Кевац Марко Sincerely

Re: understanding apr_strtok()

2008-12-12 Thread Mark Harrison
Sam Carleton wrote: I am trying to use apr_strtok() for the first time. I am taking the add_cookie() function from mod_rewrite.c, no changes. I am passing in the string, variable 's': KioskViewingStation:KVS_VERSION::5 The first line that executes in the function is: char *tok_cntx;

Re: understanding apr_strtok()

2008-12-12 Thread William A. Rowe, Jr.
Sam Carleton wrote: I am trying to use apr_strtok() for the first time. I am taking the add_cookie() function from mod_rewrite.c, no changes. I am passing in the string, variable 's': KioskViewingStation:KVS_VERSION::5 The first line that executes in the function is: char

Re: understanding apr_strtok()

2008-12-12 Thread Saju Pillai
2008/12/13 Saju Pillai saju.pil...@gmail.com: On 13-Dec-08, at 1:02 PM, Mark Harrison wrote: Sam Carleton wrote: I am trying to use apr_strtok() for the first time. I am taking the add_cookie() function from mod_rewrite.c, no changes. I am passing in the string, variable 's':

mod_proxy_fdpass now in trunk

2008-12-12 Thread Paul Querna
pque...@apache.org wrote: Author: pquerna Date: Fri Dec 12 00:04:47 2008 New Revision: 725940 URL: http://svn.apache.org/viewvc?rev=725940view=rev Log: Add a new mod_proxy_fdpass module to pass a client connection off to a separate daemon. So, this module right now is pretty simple. It

Re: mod_proxy_fdpass now in trunk

2008-12-12 Thread Graham Leggett
Paul Querna wrote: Here is an example python script that can act as a server for this: http://people.apache.org/~pquerna/fdrecv.py Run it: $ python fdrecv.py -p /tmp/helloworld And in your config file: ProxyPass /test fd:///tmp/helloworld Comments :-) ? This is very cool :) Docs?

Re: [VOTE] Release Apache HTTP server 2.2.11

2008-12-12 Thread Lars Eilebrecht
Ruediger Pluem wrote: Test tarballs for Apache httpd 2.2.11 are available at: http://httpd.apache.org/dev/dist/ Your votes please; +/-1 [ ] Release httpd-2.2.11 as GA +1, tested on Ubuntu 8 (kernel 2.6.24). ciao... -- Lars Eilebrecht l...@apache.org

Re: svn commit: r724745 - in /httpd/httpd/trunk: include/ap_socache.h modules/ssl/ssl_scache.c

2008-12-12 Thread Joe Orton
On Tue, Dec 09, 2008 at 10:30:51AM -0800, Chris Darroch wrote: Joe Orton wrote: * include/ap_socache.h: Use C++ safety wrappers, and rename -delete to -remove since the former is a C++ reserved word. Thanks again for the socache refactoring! I've been trying to keep these two modules

RE: Load memory dyanamically using handler.

2008-12-12 Thread Jaysingh Samuel
Hai all, Thanks a lot for your inputs and the mod_shmget source code. I have tried the apr_shm and apr_rmm api's for shared memory and dynamic allocating space for member elements and was working fine.. I did something like this. My struture is. typedef struct {char *name;

Re: mod_proxy_fdpass now in trunk

2008-12-12 Thread Jim Jagielski
On Dec 12, 2008, at 3:54 AM, Paul Querna wrote: pque...@apache.org wrote: Author: pquerna Date: Fri Dec 12 00:04:47 2008 New Revision: 725940 URL: http://svn.apache.org/viewvc?rev=725940view=rev Log: Add a new mod_proxy_fdpass module to pass a client connection off to a separate daemon.

Unit testing

2008-12-12 Thread Kevac Marko
Hello. What is the best way to write unit tests for C apache modules? Maybe some frameworks? -- С уважением, Кевац Марко Sincerely yours, Kevac Marko

scoreboard.h/process_score question

2008-12-12 Thread Torsten Foertsch
Hi, the struct process_score in scoreboard.h contains a sb_type member. Can anyone please explain what that item is for? I couldn't find any usage in the code. The global_score does contain a similar member. That one is used. Thanks, Torsten

Re: svn commit: r724745 - in /httpd/httpd/trunk: include/ap_socache.h modules/ssl/ssl_scache.c

2008-12-12 Thread Chris Darroch
Joe Orton wrote: Both modules look very neat! Are you going to commit them? I might debate the naming of mod_shmap ;) Heh, thanks. I don't know, I hadn't really thought about committing them ... maybe the shmap one is more useful to other folks? - have all providers consistently

todos for 2.3.1-alpha

2008-12-12 Thread Paul Querna
my short list of things it would be nice to get done before rolling a 2.3.1-alpha: - Confirm trunk Win32 build works - Fixup dtrace build issues - Solidify the configuration changes going on in auth{n,z}_core. - rename mod_wombat to mod_luau - more documentation :) Anything else anyone thinks

Re: todos for 2.3.1-alpha

2008-12-12 Thread Sander Temme
On Dec 12, 2008, at 12:27 PM, Paul Querna wrote: my short list of things it would be nice to get done before rolling a 2.3.1-alpha: - Confirm trunk Win32 build works - Fixup dtrace build issues - Solidify the configuration changes going on in auth{n,z}_core. - rename mod_wombat to mod_luau

Re: svn commit: r724745 - in /httpd/httpd/trunk: include/ap_socache.h modules/ssl/ssl_scache.c

2008-12-12 Thread Joe Orton
On Fri, Dec 12, 2008 at 11:15:49AM -0800, Chris Darroch wrote: Joe Orton wrote: Both modules look very neat! Are you going to commit them? I might debate the naming of mod_shmap ;) Heh, thanks. I don't know, I hadn't really thought about committing them ... maybe the shmap one is

Re: svn commit: r726109 - in /httpd/httpd/trunk: CHANGES modules/ssl/mod_ssl.c modules/ssl/ssl_engine_config.c modules/ssl/ssl_engine_io.c modules/ssl/ssl_engine_kernel.c modules/ssl/ssl_private.h

2008-12-12 Thread William A. Rowe, Jr.
jor...@apache.org wrote: Author: jorton Date: Fri Dec 12 12:20:40 2008 New Revision: 726109 URL: http://svn.apache.org/viewvc?rev=726109view=rev Log: mod_ssl: Make the size of the per-dir-reneg request-body buffer configurable, by popular demand: Nice, now if we just grew apreq

Re: todos for 2.3.1-alpha

2008-12-12 Thread Paul Querna
Sander Temme wrote: On Dec 12, 2008, at 12:27 PM, Paul Querna wrote: my short list of things it would be nice to get done before rolling a 2.3.1-alpha: - Confirm trunk Win32 build works - Fixup dtrace build issues - Solidify the configuration changes going on in auth{n,z}_core. - rename

Re: svn commit: r725946 - in /httpd/httpd/trunk/modules/proxy: mod_proxy.c mod_proxy.h mod_proxy_fdpass.c

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 09:46 AM, pque...@apache.org wrote: Author: pquerna Date: Fri Dec 12 00:46:47 2008 New Revision: 725946 URL: http://svn.apache.org/viewvc?rev=725946view=rev Log: Add configuration of the Flush provider for mod_proxy_fdpass. Modified:

Re: scoreboard.h/process_score question

2008-12-12 Thread Chris Darroch
Torsten Foertsch wrote: the struct process_score in scoreboard.h contains a sb_type member. Can anyone please explain what that item is for? I couldn't find any usage in the code. Looks like this was added back in r89115 along with a number of other things which were (mostly) quickly

Re: svn commit: r726109 - in /httpd/httpd/trunk: CHANGES modules/ssl/mod_ssl.c modules/ssl/ssl_engine_config.c modules/ssl/ssl_engine_io.c modules/ssl/ssl_engine_kernel.c modules/ssl/ssl_private.h

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 09:20 PM, jor...@apache.org wrote: Author: jorton Date: Fri Dec 12 12:20:40 2008 New Revision: 726109 URL: http://svn.apache.org/viewvc?rev=726109view=rev Log: mod_ssl: Make the size of the per-dir-reneg request-body buffer configurable, by popular demand: *

Re: svn commit: r724745 - in /httpd/httpd/trunk: include/ap_socache.h modules/ssl/ssl_scache.c

2008-12-12 Thread Chris Darroch
Joe Orton wrote: mod_shmap would be useful at least in modules/test so I can write some perl-framework tests for mod_socache! OK, I'll think about doing that. The m4/dsp/NWGNU wizardry required makes me tired just thinking about it, though. :-) In the meantime, I think they compile again

Re: todos for 2.3.1-alpha

2008-12-12 Thread Nick Kew
On Fri, 12 Dec 2008 12:27:11 -0800 Paul Querna c...@force-elite.com wrote: my short list of things it would be nice to get done before rolling a 2.3.1-alpha: - Confirm trunk Win32 build works - Fixup dtrace build issues - Solidify the configuration changes going on in auth{n,z}_core. -

Re: svn commit: r726082 - /httpd/httpd/trunk/modules/aaa/mod_authz_core.c

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 07:25 PM, chr...@apache.org wrote: Author: chrisd Date: Fri Dec 12 10:25:17 2008 New Revision: 726082 URL: http://svn.apache.org/viewvc?rev=726082view=rev Log: Per suggestions by Roy T. Fielding: - remove Match directive, allow Require to be negated - rename Match*

Re: svn commit: r726082 - /httpd/httpd/trunk/modules/aaa/mod_authz_core.c

2008-12-12 Thread Chris Darroch
Ruediger Pluem wrote: Sorry, but I currently don't get the reason for moving the negate check down in the code. So far as I'm aware, there's no functional or even performance difference at the moment (not that performance really matters here, since this function runs at configuration time).

Re: svn commit: r725946 - in /httpd/httpd/trunk/modules/proxy: mod_proxy.c mod_proxy.h mod_proxy_fdpass.c

2008-12-12 Thread Paul Querna
Ruediger Pluem wrote: On 12/12/2008 09:46 AM, pque...@apache.org wrote: Author: pquerna Date: Fri Dec 12 00:46:47 2008 New Revision: 725946 URL: http://svn.apache.org/viewvc?rev=725946view=rev Log: Add configuration of the Flush provider for mod_proxy_fdpass. Modified:

Re: [VOTE] Release Apache HTTP server 2.2.11

2008-12-12 Thread trawick
On Dec 6, 2008 11:30am, Ruediger Pluem rpl...@apache.org wrote: Your votes please; +/-1 [ ] Release httpd-2.2.11 as GA +1 built with Sun Studio Express and tested lightly on OpenSolaris 2008.11

Re: svn commit: r726113 - /httpd/httpd/trunk/server/mpm/worker/fdqueue.c

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 09:31 PM, chr...@apache.org wrote: Author: chrisd Date: Fri Dec 12 12:31:09 2008 New Revision: 726113 URL: http://svn.apache.org/viewvc?rev=726113view=rev Log: I'm not 100% sure about this, but it seems to silence the compiler warnings generated by r101236 (which was, in

Re: svn commit: r724745 - in /httpd/httpd/trunk: include/ap_socache.h modules/ssl/ssl_scache.c

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 09:33 PM, Joe Orton wrote: On Fri, Dec 12, 2008 at 11:15:49AM -0800, Chris Darroch wrote: Joe Orton wrote: One other thought ... does this change need an ap_mmn.h bump? Ah, I was waiting for Ruediger to ask ;) Personally I think it is I must have missed this during my

Re: svn commit: r726068 - /httpd/httpd/trunk/modules/proxy/Makefile.in

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 05:31 PM, j...@apache.org wrote: Author: jim Date: Fri Dec 12 08:31:15 2008 New Revision: 726068 URL: http://svn.apache.org/viewvc?rev=726068view=rev Log: Treat proxy/balancers normally and independently... also, allow nice pretty Making all in proxy ...

Re: svn commit: r726068 - /httpd/httpd/trunk/modules/proxy/Makefile.in

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 11:10 PM, Ruediger Pluem wrote: On 12/12/2008 05:31 PM, j...@apache.org wrote: Author: jim Date: Fri Dec 12 08:31:15 2008 New Revision: 726068 URL: http://svn.apache.org/viewvc?rev=726068view=rev Log: Treat proxy/balancers normally and independently... also, allow nice

Re: svn commit: r726068 - /httpd/httpd/trunk/modules/proxy/Makefile.in

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 11:31 PM, Ruediger Pluem wrote: On 12/12/2008 11:10 PM, Ruediger Pluem wrote: On 12/12/2008 05:31 PM, j...@apache.org wrote: Author: jim Date: Fri Dec 12 08:31:15 2008 New Revision: 726068 URL: http://svn.apache.org/viewvc?rev=726068view=rev Log: Treat proxy/balancers

Re: svn commit: r726068 - /httpd/httpd/trunk/modules/proxy/Makefile.in

2008-12-12 Thread Ruediger Pluem
On 12/12/2008 11:10 PM, Ruediger Pluem wrote: On 12/12/2008 05:31 PM, j...@apache.org wrote: Author: jim Date: Fri Dec 12 08:31:15 2008 New Revision: 726068 URL: http://svn.apache.org/viewvc?rev=726068view=rev Log: Treat proxy/balancers normally and independently... also, allow nice

Re: svn commit: r726113 - /httpd/httpd/trunk/server/mpm/worker/fdqueue.c

2008-12-12 Thread Chris Darroch
Ruediger Pluem wrote: Not quite sure if this is really correct because apr_atomic_casptr wants to have a (volatile void**) as first parameter. That's what made me less than sure ... but my gcc 4.1.2 -Wall definitely doesn't like that void** (dereferencing type-punned pointer ...). I

Re: todos for 2.3.1-alpha

2008-12-12 Thread Takashi Sato
On Fri, 12 Dec 2008 12:27:11 -0800 Paul Querna c...@force-elite.com wrote: Anything else anyone thinks would be good to get in? How about increasing worker_score::request? This was originally proposed in Oct 2007.

Event MPM Status

2008-12-12 Thread Takashi Sato
Event MPM has been Experimental for a long time. Is there any plan to mark as Productional MPM? Or any plan to drop it like Leader, Threadpool or Perchild? Regards, Takashi

Re: Event MPM Status

2008-12-12 Thread William A. Rowe, Jr.
Takashi Sato wrote: Event MPM has been Experimental for a long time. Is there any plan to mark as Productional MPM? Or any plan to drop it like Leader, Threadpool or Perchild? Right now the push is to bring Simple up to the caliber of all of the above, and replace 95% of people's applications.

Re: mod_fcgid license questions

2008-12-12 Thread Chris Darroch
pqf wrote: When you wrote mod_fcgid, was there any code which you borrowed from mod_fastcgi? No. I didn't borrow any code from mod_fastcgi. Your current intention is for mod_fcgid to be available under the GPL version 2.0, correct? Could you confirm that you wanted the GPL to

Re: mod_fcgid license questions

2008-12-12 Thread William A. Rowe, Jr.
pqf wrote: Hi, guys Nice to meet you :) I hope I can help to clarify the questions. Likewise :) When you wrote mod_fcgid, was there any code which you borrowed from mod_fastcgi? No. I didn't borrow any code from mod_fastcgi. That's good - we are looking at the headers you use and

Re: Event MPM Status

2008-12-12 Thread Paul Querna
Takashi Sato wrote: Event MPM has been Experimental for a long time. Is there any plan to mark as Productional MPM? Or any plan to drop it like Leader, Threadpool or Perchild? It should be moved out of experimental. It is a stable MPM, and its experiment proved correct imo. I was hoping to