Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On TCP connections held by NGinx, can it be configured to send TCP Keepalive

(Not HTTP KeepAlive!)

share|improve this question
add comment

4 Answers 4

Use the source, Luke.

(but why would you want to do such a thing?)

share|improve this answer
    
So our firewall would not disconnect long lived connections. –  ripper234 Oct 22 '10 at 20:51
1  
Why don't you just tell your firewall not to terminate long connections? –  symcbean Oct 25 '10 at 8:03
1  
Because there might be other firewalls along the way - I don't control them all. –  ripper234 Dec 3 '10 at 6:36
add comment

At the moment, only mail proxy module supports "so_keepalive" directive.

share|improve this answer
add comment

There is as LD_PRELOAD module that turns keepalives on, even if the app doesn't have an option to do so. (I don't know if it works with nginx or not.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.