Determine when request is fully sent

Igor Sysoev is at rambler-co.ru
Tue Feb 12 14:18:01 MSK 2008


On Tue, Feb 12, 2008 at 11:05:01AM +0100, Marcin Gajda wrote:

> I need to write a module which will make an action when all request body
> is sent to the client (or after breaking the connection by the client).
> It is very important to me to do it when data are really sent, not only
> scheduled for sending. Is this possible using nginx module framework?
> Which kind of module (handler, filter or balancer) should I use?
> 
> I looked on handler and filter module references but it seems that they
> just prepare/update response body for sending. I would like to insert
> callback after real, phisicall send.

nginx may report only successful sending full response to a kernel,
but it can not say whether response was sent by kernel to client.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list