Re: Is it possible to keep a module running after closing a connection?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 31, 2008 at 6:27 PM, Scott Gifford
<sgifford@xxxxxxxxxxxxxxxx> wrote:
> "Brown Chris-CCB034" <Christopher.Brown@xxxxxxxxxxxx> writes:
>
>  > I'm looking at a situation where we'd want to close a connection (for example
>  > the message size is too large) but we'd like to keep the thread active so that
>  > we can perform some other steps before releasing the thread.  Is this possible?
>  >   I've been looking through the apache header files and nothing stands out to
>  > me as a method that would immediately close the connection without releasing
>  > the thread.
>
>  In the process model, you just fork() twice and continue your work in
>  the grandchild process.  Not sure with the threaded model, but
>  probably you could just create another thread to do your work, and set
>  it up to not require joining.
>
>  ----Scott.

You can do your followup processing in the logger hook, but you'll
have to stash away any data you need between hooks.

-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux