In fact I mostly need catch client deconnection. There is no good way for that as for accepted connection, isn't it? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,229100,229958#msg-229958