Bogdan-Andrei Iancu writes:
This will be definitely a better solution as it will be more efficient from load point of view - the question is how portable (general supported) is the TCP keepalive setting - this will need some investigation.
TCP keepalives are not supported by all all OSes. it should not prevent using it in those that do.
-- juha