RE: "Close" HTTP connection callback/hook

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

 



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@xxxxxxxxxxxx] 
Sent: Sunday, May 13, 2012 10:55 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  "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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-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