httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Croteau, Beau" <>
Subject RE: Apache Thread Creation/Destroy Problem
Date Thu, 14 Jun 2007 15:59:25 GMT
The thread is created inside of the gsoap_handler.  Though these threads
aren't necessarily mapped to a one to one gsoap_handler call.  We have a
web service 'startup' function that creates several background threads
to do the processing and from there don't necessary have to have the
gsoap_handler called again for the thread leak to start happening.


-----Original Message-----
From: Joe Lewis [] 
Sent: Thursday, June 14, 2007 11:59 AM
Subject: Re: Apache Thread Creation/Destroy Problem

Croteau, Beau wrote:
> I'm sorry, I don't understand the question.
> Mod_gsoap hooks in as such:
> static void
> gsoap_hooks(apr_pool_t * p)
> {
>     // I think this is the call to make to register a handler for
> calls (GET PUT et. al.).
>     // We will ask to be last so that the comment has a higher
> to
>     // go at the end.
>     ap_hook_handler(gsoap_handler, NULL, NULL, APR_HOOK_LAST);
>     //Register a handler for post config processing 
>     ap_hook_post_config(gsoap_init, NULL, NULL, APR_HOOK_MIDDLE);
> }


I think we need to know if you create the thread in the gsoap_init
function or the gsoap_handler function (not a copy of the register_hooks
function, but which hook that register_hooks uses to create the thread).


View raw message