[stunnel-users] MySQL replication with stunnel, connection closed after some time

Ludolf Holzheid lholzheid at bihl-wiedemann.de
Fri Oct 16 15:13:08 CEST 2009


On Fri, 2009-10-16 14:42:05 +0200, Marcel Kirsch wrote:
> Hello Mike and Claus,
> 
> it is correct that there is a router (with NAT) between the slave server
> and the internet. I tried the solution of Mike (socket =
> l:SO_KEEPALIVE=1...), but it didn't work.
> I googled SO_KEEPALIVE and discovered that it only sends a keep alive
> packet every 2 hours by default. Unfortunately the connection is closed
> after a shorter time (about 30 minutes). Do you know how it is possible
> to set the keep alive time to a shorter value? I tried SO_KEEPALIVE=1:5
> and hoped this could set the default time between keep alive packets to
> 5 minutes, but this didn't work.

I wrote a patch for exactly this purpose some time ago.
see http://stunnel.mirt.net/pipermail/stunnel-users/2009-May/002366.html.

Ludolf

-- 

---------------------------------------------------------------
Ludolf Holzheid             Tel:    +49 621 339960
Bihl+Wiedemann GmbH         Fax:    +49 621 3392239
Floßwörthstraße 41          e-mail: lholzheid at bihl-wiedemann.de
D-68199 Mannheim, Germany
---------------------------------------------------------------




More information about the stunnel-users mailing list