# Handle connection abort

**URL:** <https://www.ruby-forum.com/t/handle-connection-abort/213844>\
**Category:** NGINX\
**Created:** [November 14, 2011, 7:26am UTC](https://www.ruby-forum.com/t/handle-connection-abort/213844 "2011-11-14T07:26:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 14, 2011, 7:26am UTC](https://www.ruby-forum.com/t/handle-connection-abort/213844/1 "2011-11-14T07:26:58Z")

</div>

Hello,

I have an nginx module that receives http request, treats it and sends  
response to the client host.  
I need to handle situation when connection between server and client is  
aborted. How can I do it?

Thanks in advance

Posted at Nginx Forum:

> **[Handle connection abort](https://forum.nginx.org/read.php?2,218285,218285#msg-218285)**
>
> Hello, I have an nginx module that receives http request, treats it and sends response to the client host. I need to handle situation when connection between server and client is aborted. How can I do it? Thanks in advance
