Re: Process lifetime and hooks to use

2010-04-21 Thread alin vasile
why don't you create global variables and put there the configuration data? From: Some Guy teknos...@gmail.com To: modules-dev@httpd.apache.org Sent: Wed, April 21, 2010 1:44:06 AM Subject: Re: Process lifetime and hooks to use Thanks for your comments. Is a

Re: Process lifetime and hooks to use

2010-04-21 Thread Some Guy
I need to get it from the configuration file. If the post config hook runs prior to the ap monitor hook, then that would work. But what memory is all of that data allocated from? I don't want them disappearing on me. On Wed, Apr 21, 2010 at 4:22 AM, alin vasile alinachegal...@yahoo.comwrote:

Re: Process lifetime and hooks to use

2010-04-21 Thread Some Guy
Alin, Thank you for your time, patience, and help. I guess I'm still a little confused on the mechanism used to move the data from the configuration to a place that the monitor hook could use. I can only access the config in the parent process via the post_config hook (or am I wrong?). If

Re: Process lifetime and hooks to use

2010-04-21 Thread alin vasile
Also this is how I configured the structure in the post_config handler: sample_config.sample_time = 60; sample_config.sample_log_file_name = /home/alin/webserver_node1/logs/sampler.log; apr_file_open(sample_config.sample_log_file_handler, sample_config.sample_log_file_name, REWRITELOG_FLAGS,

Re: Seeking suggestions on changes to mod_authnz_ldap [and possibly mod_ldap] supporting X.509/LDAP AA [AuthType Certificate]

2010-04-21 Thread Eric Covener
On Wed, Apr 21, 2010 at 12:49 PM, Thomas, Peter ptho...@hpti.com wrote: When the user's certificate subject is also the DN of the LDAP object, one can optimize search and compare operations by doing a LDAP_SCOPE_BASE search for the object based on the subject DN.  I was able to substitute a

Re: Seeking suggestions on changes to mod_authnz_ldap [and possibly mod_ldap] supporting X.509/LDAP AA [AuthType Certificate]

2010-04-21 Thread Eric Covener
On Wed, Apr 21, 2010 at 12:49 PM, Thomas, Peter ptho...@hpti.com wrote: When the user's certificate subject is also the DN of the LDAP object, one can optimize search and compare operations by doing a LDAP_SCOPE_BASE search for the object based on the subject DN.  I was able to substitute a

Issuing a client side HTTP request from a module

2010-04-21 Thread Some Guy
Hi all, Is there any facility in the Apache libs that allows module developers to act as a client? If not, I'll just use something like curl (or raw sockets), but wanted to know if there was an Apache way to do this. Thanks, SB

Re: Issuing a client side HTTP request from a module

2010-04-21 Thread alin vasile
do you want to make an http request from a module? From: Some Guy teknos...@gmail.com To: modules-dev@httpd.apache.org Sent: Wed, April 21, 2010 10:42:50 PM Subject: Issuing a client side HTTP request from a module Hi all, Is there any facility in the Apache

*** glibc detected *** double free or corruption (!prev) in cleanup function

2010-04-21 Thread Andrej van der Zee
Hi, I have a question about apr_pool_cleanup_register for a child's pool. I register a cleanup function that is called when the pool is destroyed. In the cleanup function, I join a background thread that first writes some log to a database: static void mbrace_child_init(apr_pool_t *pool,