Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

"Close" HTTP connection callback/hook

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


evgeny at inovvia

May 13, 2012, 8:30 AM

Post #1 of 4 (188 views)
Permalink
"Close" HTTP connection callback/hook

Hi,

I am implementing a new module on C.
I need to perform some functionality when a user closes a HTTP connection before he received any response for his request.
How can I know when a HTTP user request state has been changed/closed?
Is there any callback/hook for this functionality I can register?

Thanks,
Evgeny


nick at webthing

May 13, 2012, 12:55 PM

Post #2 of 4 (178 views)
Permalink
Re: "Close" HTTP connection callback/hook [In reply to]

On 13 May 2012, at 16:30, Evgeny Shvidky wrote:

> Hi,
>
> I am implementing a new module on C.

You'd probably be better-off on the modules list.

> I need to perform some functionality when a user closes a HTTP connection before he received any response for his request.
> How can I know when a HTTP user request state has been changed/closed?
> Is there any callback/hook for this functionality I can register?

You can register your function as a cleanup on the connection's pool,
if that meets your needs.

--
Nick Kew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


evgeny at inovvia

May 13, 2012, 10:47 PM

Post #3 of 4 (176 views)
Permalink
RE: "Close" HTTP connection callback/hook [In reply to]

Hi,

Thank you for a quick answer.
Your suggestion is interesting but it doesn't meet exactly my needs.
The problem that this callback will be called after every HTTP session even if my module sent response to a user.
Can I register a callback function only for "unexpected" user close request (before my module responded)?

Thanks,
Evgeny

-----Original Message-----
From: Nick Kew [mailto:nick [at] webthing]
Sent: Sunday, May 13, 2012 10:55 PM
To: users [at] httpd
Subject: Re: [users [at] http] "Close" HTTP connection callback/hook


On 13 May 2012, at 16:30, Evgeny Shvidky wrote:

> Hi,
>
> I am implementing a new module on C.

You'd probably be better-off on the modules list.

> I need to perform some functionality when a user closes a HTTP connection before he received any response for his request.
> How can I know when a HTTP user request state has been changed/closed?
> Is there any callback/hook for this functionality I can register?

You can register your function as a cleanup on the connection's pool, if that meets your needs.

--
Nick Kew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


covener at gmail

May 14, 2012, 5:24 AM

Post #4 of 4 (174 views)
Permalink
Re: "Close" HTTP connection callback/hook [In reply to]

On Mon, May 14, 2012 at 1:47 AM, Evgeny Shvidky <evgeny [at] inovvia> wrote:
> Hi,
>
> Thank you for a quick answer.
> Your suggestion is interesting but it doesn't meet exactly my needs.
> The problem that this callback will be called after every HTTP session even if my module sent response to a user.
> Can I register a callback function only for "unexpected" user close request (before my module responded)?

No, but you can remember how successful your handler was on the last
request that it saw if you hook the end of each request or the end of
the connection.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.