httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saju Pillai <saju.pil...@gmail.com>
Subject Re: child_init for threads?
Date Thu, 19 Mar 2009 04:34:22 GMT
Andrej van der Zee wrote:
> Hi,
> 
> Thanks for your reply.
> 
>> AFAIK there's no support for such thing in apache. Have a look
>> yourself in server/mpm/worker/worker.c.
>>
>> You can hook create_connection (the first hook offered by apache in a
>> thread after its creation). However, create_connection is called
>> several times during the life of a thread, so you'll need some boolean
>> to check if you've already initialised the thread-specific data.
>>
> 
> Do you know if my handler for create_connection() takes (lets say) 3
> seconds to execute, would this slow down an HTTP request for 3 seconds
> too? Or is it executed totally outside the processing of an HTTP
> request?


Yes. create_connection() is the first hook run as part of request 
processing, a delay in create_connection() will result in a delay in 
HTTP processing.

srp
-- 
http://saju.net.in

Mime
View raw message