# Does nginx support linger\_close as client?

**URL:** <https://www.ruby-forum.com/t/does-nginx-support-linger-close-as-client/244315>\
**Category:** NGINX\
**Created:** [March 21, 2016, 5:29pm UTC](https://www.ruby-forum.com/t/does-nginx-support-linger-close-as-client/244315 "2016-03-21T17:29:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [March 21, 2016, 5:29pm UTC](https://www.ruby-forum.com/t/does-nginx-support-linger-close-as-client/244315/1 "2016-03-21T17:29:58Z")

</div>

Hi guys  
i run nginx as a proxy, it became a client when connecting to a  
upstream server.  
i want to close the connection with SO\_LINGER option when i read  
the  
full data, because linger\_close send RST to upstream server and avoid  
too  
many time\_wait state.  
does nginx support the feature? (i think this feature is different  
with  
the existing lingering\_clise directive)

Posted at Nginx Forum:

> **[does nginx support linger\_close as client?](https://forum.nginx.org/read.php?2,265547,265547#msg-265547)**
>
> Hi guys i run nginx as a proxy, it became a client when connecting to a upstream server. i want to close the connection with SO\_LINGER option when i read the full data, because linger\_close send RST to upstream server and avoid too many time\_wait...
