Re: mutex dir?

2006-02-17 Thread Oden Eriksson
torsdagen den 16 februari 2006 22.48 skrev Jim Gallacher: > Oden Eriksson wrote: > > tisdagen den 14 februari 2006 13.17 skrev Oden Eriksson: > >>Hello. > > > > [...] > > > > I am no programmer, but can't you just look at how this is handled in the > > core mod_ssl and ldap code? > > That would be

Re: mutex dir?

2006-02-16 Thread Graham Dumpleton
On 17/02/2006, at 10:01 AM, Jim Gallacher wrote: The ap_check_cmd_context function may also be of interest. http://docx.webperf.org/group__ap__check__cmd__context.html For example, lets say we wanted to disallow the use of PythonDebug in const char *err; if ((err = ap_check_cmd_con

Re: mutex dir?

2006-02-16 Thread Jim Gallacher
Graham Dumpleton wrote: Graham Dumpleton wrote .. Graham Dumpleton wrote .. How does req.server.get_options() differ from req.server.get_config(), which already exists? I still see what is in get_config() as special, ie., the values for actual directives. Just don't think it is good to mix

Re: mutex dir?

2006-02-16 Thread Jim Gallacher
Oden Eriksson wrote: tisdagen den 14 februari 2006 13.17 skrev Oden Eriksson: Hello. [...] I am no programmer, but can't you just look at how this is handled in the core mod_ssl and ldap code? That would be cheating and no fun at all! ;) Seriously though, we do often look through the so

Re: mutex dir?

2006-02-15 Thread Graham Dumpleton
Graham Dumpleton wrote .. > Graham Dumpleton wrote .. > > > How does req.server.get_options() differ from req.server.get_config(), > > > which already exists? > > > > I still see what is in get_config() as special, ie., the values for > > actual directives. Just don't think it is good to mix them.

Re: mutex dir?

2006-02-15 Thread Graham Dumpleton
Graham Dumpleton wrote .. > > How does req.server.get_options() differ from req.server.get_config(), > > which already exists? > > I still see what is in get_config() as special, ie., the values for > actual directives. Just don't think it is good to mix them. Looking at this further, the distinc

Re: mutex dir?

2006-02-15 Thread Graham Dumpleton
Jim Gallacher wrote .. > > I have a better option (pun intended). :-) > > > > We do not need a new directive. Instead use existing "PythonOption" > > directive. > > That could work. > > > In the handler code for the directive, it can look at the > > value of the "cmd_parms->path" and determine i

Re: mutex dir?

2006-02-15 Thread Jim Gallacher
Graham Dumpleton wrote: Jim Gallacher wrote .. If the settings are going to be a generic key/value like in PythonOption, but only for purposes of the mod_python system itself, maybe it should be called PythonSystemOption. Prefer PythonSystemOption as "Module" is too confusing to me given you ha

Re: mutex dir?

2006-02-15 Thread Graham Dumpleton
Jim Gallacher wrote .. > > If the settings are going to be a generic key/value like in > > PythonOption, but only for purposes of the mod_python system itself, > > maybe it should be called PythonSystemOption. Prefer PythonSystemOption > > as "Module" is too confusing to me given you have both Apac

Re: mutex dir?

2006-02-15 Thread Jim Gallacher
Graham Dumpleton wrote: Hmmm, somehow I managed to vapourise an email, didn't even get to my sent mail box. Let me try this again. Jim Gallacher wrote .. Graham Dumpleton wrote: Correct, is actually done from the mod_python module init function. The only way one could have it dynamically ch

Re: mutex dir?

2006-02-14 Thread Graham Dumpleton
Hmmm, somehow I managed to vapourise an email, didn't even get to my sent mail box. Let me try this again. Jim Gallacher wrote .. > Graham Dumpleton wrote: > > Correct, is actually done from the mod_python module init function. > > > > The only way one could have it dynamically changing is throug

Re: mutex dir?

2006-02-14 Thread Jim Gallacher
Graham Dumpleton wrote: Grisha wrote .. On Tue, 14 Feb 2006, Jim Gallacher wrote: I wonder if we should generalize this, so rather than PythonMutexDir, we have PythonModuleConfig. Usage might look like: PythonModuleConfig mutex_dir /path/to/mutexs PythonModuleConfig max_mutex_locks 8

Re: mutex dir?

2006-02-14 Thread Graham Dumpleton
Grisha wrote .. > > On Tue, 14 Feb 2006, Jim Gallacher wrote: > > > I wonder if we should generalize this, so rather than PythonMutexDir, > we have > > PythonModuleConfig. Usage might look like: > > > > PythonModuleConfig mutex_dir /path/to/mutexs > > PythonModuleConfig max_mutex_locks 8 > > I

Re: mutex dir?

2006-02-14 Thread Gregory (Grisha) Trubetskoy
On Tue, 14 Feb 2006, Jim Gallacher wrote: I wonder if we should generalize this, so rather than PythonMutexDir, we have PythonModuleConfig. Usage might look like: PythonModuleConfig mutex_dir /path/to/mutexs PythonModuleConfig max_mutex_locks 8 I may be wrong, but I think the reason this wa

Re: mutex dir?

2006-02-14 Thread Oden Eriksson
gt;>>question/request is, could you please make this directory set in the > >>>config? > >> > >>I assume you mean as an option to configure, rather than as an Apache > >>configuration directive? > > > > I meant as an apache configurat

mutex dir?

2006-02-14 Thread Oden Eriksson
Hello. In our package in Mandriva I patch mod_python.c so that the mutex stuff is put in "/var/cache/httpd/mod_python/". But now with mod_python-3.2.7 plus fixes from the trunk and running the test suite it complains it cannot access "/var/cache/httpd/mod_python/" (of course). So my question/re