Set SO_KEEPALIVE, maybe it helps
[mirror/dsa-puppet.git] / modules / stunnel4 / templates / stunnel.conf.erb
index da61562..829b77a 100644 (file)
@@ -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}" %>