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.
--Beau -----Original Message----- From: Joe Lewis [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 11:59 AM To: [EMAIL PROTECTED] 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 method > calls (GET PUT et. al.). > // We will ask to be last so that the comment has a higher tendency > 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); > } > [snip] 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). Joe
