lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 30 Apr 2014 16:22:15 +0200
From:	Erik Hugne <>
To:	<>
CC:	Anders Franzen <>
Subject: tcp: how to prevent connection abort due to failed keepalive?

Is there a way to disable connection termination due to failed TCP keepalives?
I was hoping that it would be possible to use TCP_KEEPCNT == 0 for this purpose,
but this gave back an -EINVAL.

There's nothing in the RFC that claims that closing the connection if the peer
fails to respond to _all_ probes, just that:

(RFC1122 section
	It is extremely important to remember that ACK segments that
	contain no data are not reliably transmitted by TCP.
	Consequently, if a keep-alive mechanism is implemented it
	MUST NOT interpret failure to respond to any specific probe
	as a dead connection.

So, if we have a connection with TCP_KEEPCNT set to 1, and the peer fails to
respond to this "specific probe". I think the RFC is pretty clear that the
connection shall not be considered dead. In this case, Linux send a TCP RST
and aborts the connection.

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists