audrius.valunas@teo.lt wrote:
There is synchronous replication between mastyer and slave. When network connectivity problems occur master closes tcp connection but slave doesn't notice those problems, it still has tcp connection open, but in real it is not receiving updates any more. I think that can be solved adding some ack from slave because sending on such a socket would fail and force slave to retry connection.
Well, this should already be taken into consideration by SO_KEEPALIVE, which is always set when available on all connections. I concur that it usually requires quite a long time before a connection is actually checked (usually more than 2 hours), so some better policy could be put in place.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------