the situation is that the fd is close by the client, the nginx will close the connection. my module need to know the close event, and do some my customized close action before that(e.g release my resource). Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4545,4545#msg-4545