Re: Issuing a client side HTTP request from a module

2010-04-22 Thread Nick Kew
On 22 Apr 2010, at 15:14, Some Guy wrote: > I don't really need keepalive. Just a really basic http request. However, > this would be in a non request handler thread, so I'll have no initial > request_rec to create a subrequest from. It would also be in the parent > process via a monitor hook.

Re: Issuing a client side HTTP request from a module

2010-04-22 Thread alin vasile
check the thread "Doing a subrequest with ap_run_sub_req" in the same list From: Some Guy To: modules-dev@httpd.apache.org Sent: Thu, April 22, 2010 5:14:07 PM Subject: Re: Issuing a client side HTTP request from a module I don't really need keepalive. Just a

Re: Issuing a client side HTTP request from a module

2010-04-22 Thread Some Guy
I don't really need keepalive. Just a really basic http request. However, this would be in a non request handler thread, so I'll have no initial request_rec to create a subrequest from. It would also be in the parent process via a monitor hook. I see the mod_proxy create_worker and initialize_w

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

2010-04-22 Thread bronto
On 4/22/2010 1:46 PM, Andrej van der Zee wrote: Hi Bronto, http://lmgtfy.com/?q=apache+httpd+valgrind Thank you for the tip :) You are funny! Cheers, Andrej Hi, yeah, i didn't mean no offense. I just thought that it's rather a FAQ ;)

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

2010-04-22 Thread Andrej van der Zee
Hi Bronto, > > http://lmgtfy.com/?q=apache+httpd+valgrind > Thank you for the tip :) You are funny! Cheers, Andrej

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

2010-04-22 Thread bronto
On 4/22/2010 1:09 PM, Andrej van der Zee wrote: Hi, This and try running httpd through valgrind. How can I do that? Thanks, Andrej http://lmgtfy.com/?q=apache+httpd+valgrind

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

2010-04-22 Thread Andrej van der Zee
Hi, > > This and try running httpd through valgrind. > How can I do that? Thanks, Andrej

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

2010-04-22 Thread Andrej van der Zee
Hi, > Do you create a background thread per apache process? Or do you have a > single background thread that is used by all apache processes? Which > hook creates the background thread? The background thread is created by ap_hook_child_init, thus every child process has one running background thr

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

2010-04-22 Thread Ben Noordhuis
> Try compiling both apache and apr with debug symbols and run it in a > debugger with -X (i.e. monoprocess). Place a breakpoint on line 134 > and see how many times you reach it. This and try running httpd through valgrind.

Re: Issuing a client side HTTP request from a module

2010-04-22 Thread Nick Kew
On 22 Apr 2010, at 08:25, Sorin Manolache wrote: > As Nick says, the common solution are subrequests. However, note that > subrequests are not kept alive. Backend connections may be kept alive or closed, as detailed in the mod_proxy docs! If you want to implement keepalive without mod_proxy, th

Re: Issuing a client side HTTP request from a module

2010-04-22 Thread Sorin Manolache
On Wed, Apr 21, 2010 at 22:51, Nick Kew wrote: > > On 21 Apr 2010, at 20:42, Some Guy wrote: > >> Hi all, >> >> Is there any facility in the Apache libs that allows module developers to >> act as a client? > > The usual way would be to harness mod_proxy, commonly in a subrequest. > You don't have

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

2010-04-22 Thread Sorin Manolache
On Thu, Apr 22, 2010 at 05:47, Andrej van der Zee wrote: > 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

Re: Issuing a client side HTTP request from a module

2010-04-22 Thread Saju Pillai
Some Guy wrote: 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. You'll have to co-opt a http client library or roll your ow