Skip to contentSkip to conversation

Faster TCP keepalive

DISCUSSION Stephen Suryaputra Lin 3 participants 3 messages Jun 23, 2017 – Jun 26, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Greetings,

I'm writing this to probe if there has been thoughts or efforts in allowing sub-second TCP keep alive interval? One application is for TCP connections between IP hosts connected by an internal backplane where a faster detection is a necessity and the increased traffic can be accommodated.

Suggestions on other ways to quickly tearing down TCP connections to a rebooted host in the application above are welcomed.

Thank you,

Stephen.

#1 lore raw
Quoted 2 lines

From: Stephen Suryaputra Lin
Sent: 23 June 2017 20:58

...

Quoted 2 lines

Suggestions on other ways to quickly tearing down TCP connections to a rebooted host in the application above are welcomed.

Arrange to send an RST for each connection during shutdown.

David

#2 lore raw
In reply to Stephen Suryaputra Lin
Quoted 7 lines

From: "Stephen Suryaputra Lin" <[email protected]>
To: [email protected]
Sent: Friday, 23 June, 2017 3:58:17 PM
Subject: Faster TCP keepalive

Greetings,

Quoted 9 lines

I'm writing this to probe if there has been thoughts or efforts in allowing sub-second TCP keep alive interval? One application is for TCP connections between IP hosts connected by an internal backplane where a faster detection is a necessity and the increased traffic can be accommodated.

Suggestions on other ways to quickly tearing down TCP connections to a rebooted host in the application above are welcomed.

For quickly tearing down TCP connections to a host that has been rebooted, avoiding e.g. waiting for TCP max retransmit count to be reached), you could use SOCK_DESTROY (as e.g. iproute2's "ss -K [ FILTER ]" does).

Regards,

Lance

Quoted 4 lines

Thank you,

Stephen.