Re: Mod-Proxy and related modules

2011-09-12 Thread alin vasile
I managed to get the forwarded url in r-notes by using a hook in mod_proxy: proxy_hook_pre_request(pre_proxy_request, NULL, NULL, APR_HOOK_FIRST);  int pre_proxy_request(proxy_worker **worker,     proxy_balancer **balancer,     request_rec *r,     proxy_server_conf *conf, char **url)

Re: httpd filters to record the client network time

2010-10-04 Thread alin vasile
I'll give it a try with the first option. Thanks, Alin - Original Message From: Nick Kew n...@apache.org To: modules-dev@httpd.apache.org Sent: Sat, October 2, 2010 11:23:05 PM Subject: Re: httpd filters to record the client network time On Sat, 2 Oct 2010 08:11:33 -0700 (PDT) alin

Re: Connection filters and the proxy

2010-08-22 Thread alin vasile
Hi Graham, Did you tried using the associated request_rec structure? There is a field called proxyreq in it which might help. Regards, Alin From: Graham Leggett minf...@sharp.fm To: dev@httpd.apache.org Sent: Sun, August 22, 2010 1:36:57 AM Subject:

Re: undefined symbol errors on loading a module that uses libxml2

2010-06-20 Thread alin vasile
execute a ldd for /usr/lib/libxml2.so and see if all the dependecies are satisfied. Post the entire LoadModule/LoadFile area, I'm not sure if the order matters. From: Abhinav Upadhyay abhi...@hover.in To: dev@httpd.apache.org Sent: Sun, June 20, 2010 7:56:23

dynamic module versioning

2010-04-26 Thread alin vasile
Hi, How I can accomplish the dynami9c module versioning? For example I want to deliver mod_x.so.1.0.1. Where do I need to specify the version 10.0.1? Thanks, Alin

Re: Issuing a client side HTTP request from a module

2010-04-23 Thread alin vasile
pretty straightforward. Can this be issued from the parent? SB On Thu, Apr 22, 2010 at 4:21 PM, alin vasile alinachegal...@yahoo.comwrote: check the thread Doing a subrequest with ap_run_sub_req in the same list From: Some Guy teknos...@gmail.com To: modules

Re: Process lifetime and hooks to use

2010-04-21 Thread alin vasile
people know what the heck I'm doing too. People who aren't familiar with apache modules are going to think I'm on crack. SB On Mon, Apr 19, 2010 at 5:00 PM, alin vasile alinachegal...@yahoo.comwrote: comments inline From: Some Guy teknos...@gmail.com

Re: Process lifetime and hooks to use

2010-04-21 Thread alin vasile
, REWRITELOG_MODE, p); From: alin vasile alinachegal...@yahoo.com To: modules-dev@httpd.apache.org Sent: Wed, April 21, 2010 5:22:32 PM Subject: Re: Process lifetime and hooks to use you can access the config in the child process too

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

Re: Process lifetime and hooks to use

2010-04-19 Thread alin vasile
as my context and use the userdata_set/get APIs as I periodically fetch / update a file. [alin vasile] the pool is used to allocate the memory from. You'll need global variables to store the pointers. See Nick.s response What I'll need to play with is to see how I can set this up

Re: Process lifetime and hooks to use

2010-04-18 Thread alin vasile
Apr 2010, at 11:33, alin vasile wrote: I discovered that it is :) Any idea how would I retrieve in this hook the module config structure? It seems it is not possible, as the only argument in the handler is a apr_pool_t structure. It's in the parent process, which is single-threaded. So

Re: Process lifetime and hooks to use

2010-04-18 Thread alin vasile
with that.  Any insight on the differences in MPMs and what to watch out for? On Sun, Apr 18, 2010 at 12:22 PM, William A. Rowe Jr. wr...@rowe-clan.netwrote: On 4/18/2010 2:34 AM, alin vasile wrote: the monitor hook gets only a pointer to an apr_pool_t structure. Take a look at apr_pool_data_

Re: Fwd: Process lifetime and hooks to use

2010-04-17 Thread alin vasile
Hi Nick, Is ap_hook_monitor available in httpd 2.2.15? Thanks, Alin From: Nick Kew n...@apache.org To: modules-dev@httpd.apache.org Sent: Sat, April 17, 2010 12:10:46 PM Subject: Fwd: Process lifetime and hooks to use My reply seems to be lost in the

Re: Process lifetime and hooks to use

2010-04-16 Thread alin vasile
Hi, I made a similar thread that monitors a separate process and I put its init/start procedure in the post_config hook. Remember to register a function that closes it when the config memory pool is destroyed. Alin From: Some Guy teknos...@gmail.com To:

Re: Input filters + apr_time_exp_lt/apr_time_now thread safety

2010-04-15 Thread alin vasile
with this I would like to save the time when the first byte was received by httpd and later save it in request_rec-notes. Note that a connection input filter will have the structure request_rec unitialized. From: alin vasile alinachegal...@yahoo.com

Input filters + apr_time_exp_lt/apr_time_now thread safety

2010-04-15 Thread alin vasile
Hi, I am using apache 2.2.14 with worker mpm. My module does the following: - my module config structure records two time values : config-time_request_in and config-time_request_in_end; they are allocated in child_init: config-time_request_in = apr_pcalloc(pool, sizeof