Re: Can't access module config from handler function

2011-08-17 Thread Zaid Amireh
On Aug 15, 2011, at 1:45 PM, Simone Caruso wrote: On 15/08/2011 01:44, Nick Kew wrote: or set up something server-wide How? there's some code that can i read? You can use a global variable which gets set during apache's startup, you have to treat it as read only after the childs

mutex permission denied

2011-08-17 Thread Jason Funk
I am trying to implement an apr proc mutex in my module. When I created the mutex with APR_LOCK_DEFAULT the mutex is successfully created but I am getting Permission Denied when I try to acquire the lock. I ran apr_proc_mutex_defname to get the name of the default mutex type and it is

Re: mutex permission denied

2011-08-17 Thread Ben Noordhuis
On Wed, Aug 17, 2011 at 15:20, Jason Funk jasonlf...@gmail.com wrote: I am trying to implement an apr proc mutex in my module. When I created the mutex with APR_LOCK_DEFAULT the mutex is successfully created but I am getting Permission Denied when I try to acquire the lock. I ran

Re: mutex permission denied

2011-08-17 Thread Jason Funk
Hm... interesting. I'm creating the mutex in my post_config hook. It seems like the parent process has to create the mutex otherwise if we want for a child a race condition might happen Where is the correct place to create the mutex so that it's available to all child processes without

Re: Can't access module config from handler function

2011-08-17 Thread Simone Caruso
On 17/08/2011 09:10, Zaid Amireh wrote: On Aug 15, 2011, at 1:45 PM, Simone Caruso wrote: On 15/08/2011 01:44, Nick Kew wrote: or set up something server-wide How? there's some code that can i read? You can use a global variable which gets set during apache's startup, you have to

Re: mutex permission denied

2011-08-17 Thread Jason Funk
I find that if I use seteuid() to the uid of the user that my server is running as before creating the mutex and back to root afterwards, then it works. Is there anything wrong with this approach? If it is a fine way of doing it, how then do I find out what user the server is running as? I know

Re: mutex permission denied

2011-08-17 Thread William A. Rowe Jr.
On 8/17/2011 1:23 PM, Jason Funk wrote: I find that if I use seteuid() to the uid of the user that my server is running as before creating the mutex and back to root afterwards, then it works. Is there anything wrong with this approach? This only works if the target path is apache-user

Re: -DUSE_STAT_CACHE -DSTAT_CACHE_SIZE, -DSTAT_CACHE_TIME

2011-08-17 Thread Ruediger Pluem
On 08/16/2011 10:00 PM, Reindl Harald wrote: Are these patches included upstream or anyhow relevant for 2.2.x? http://www.rocg.uta4you.at/manual/misc/perf-mja.html I think neither. They look like to be Irix specific and very outdated. A lot of this stuff would need to go to APR anyway.

Re: cfg_getline tests fail

2011-08-17 Thread Stefan Fritsch
On Tuesday 16 August 2011, Ruediger Pluem wrote: Currently I see the following test framework failures with trunk: Failed 10/126 tests, 92.06% okay You were using an outdated version. The necessary changes in trunk were committed last Saturday. Apart from that, there was a bug in the

[Notice] chair change

2011-08-17 Thread William A. Rowe Jr.
I'd like to thank and welcome Eric Covener as our new HTTP Server project chair, as confirmed today by the ASF Board of Directors! It's been a pleasure serving as your chair these past two years, and I know that Eric will do a great job as chair.

Re: [Notice] chair change

2011-08-17 Thread Eric Covener
On Wed, Aug 17, 2011 at 5:34 PM, William A. Rowe Jr. wr...@rowe-clan.net wrote: I'd like to thank and welcome Eric Covener as our new HTTP Server project chair, as confirmed today by the ASF Board of Directors! It's been a pleasure serving as your chair these past two years, and I know that

Re: [Notice] chair change

2011-08-17 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Congrats Eric on behalf of the enigform and mod_openpgp development team (i.e myself :P) Thank you William! On 08/17/2011 06:50 PM, Eric Covener wrote: On Wed, Aug 17, 2011 at 5:34 PM, William A. Rowe Jr. wr...@rowe-clan.net wrote: I'd like to

Re: [Notice] chair change

2011-08-17 Thread Rainer Jung
On 17.08.2011 23:34, William A. Rowe Jr. wrote: I'd like to thank and welcome Eric Covener as our new HTTP Server project chair, as confirmed today by the ASF Board of Directors! It's been a pleasure serving as your chair these past two years, and I know that Eric will do a great job as