From: Peter Palfrader Date: Mon, 23 Mar 2015 10:38:34 +0000 (+0100) Subject: Set SO_KEEPALIVE, maybe it helps X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=6acf683badd76125752830ae7f9a509eb428d184;hp=03da7a9a7df8651d438cb23744f9ecfafcacad39;p=mirror%2Fdsa-puppet.git Set SO_KEEPALIVE, maybe it helps --- diff --git a/modules/stunnel4/templates/stunnel.conf.erb b/modules/stunnel4/templates/stunnel.conf.erb index da6156291..829b77a14 100644 --- a/modules/stunnel4/templates/stunnel.conf.erb +++ b/modules/stunnel4/templates/stunnel.conf.erb @@ -32,6 +32,7 @@ debug = notice client = <%= client ? "yes" : "no" %> socket = a:SO_LINGER=1:60 +socket = a:SO_KEEPALIVE=1 [<%= name %>-server] accept = <%= accept =~ /:/ ? accept : ":::#{accept}" %>