When the socket has data to send, then the TCP_KEEPALIVE timer doesn't get
activated and it takes much longer time before the socket is closed.
TCP_USER_TIMEOUT also needs to be set for the keepalive to function
when there's traffic on the tcp socket. This will cause the socket
to close when the remote end is not reachable.
Reviewed: https:/ /review. opencontrail. org/12165 github. org/Juniper/ contrail- sandesh/ commit/ 1c07be315cf1582 64fe89da5ff4894 0358f4a15a
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 1c07be315cf1582 64fe89da5ff4894 0358f4a15a
Author: Raj Reddy <email address hidden>
Date: Thu Jul 2 08:56:26 2015 -0700
When the socket has data to send, then the TCP_KEEPALIVE timer doesn't get
activated and it takes much longer time before the socket is closed.
TCP_USER_TIMEOUT also needs to be set for the keepalive to function
when there's traffic on the tcp socket. This will cause the socket
to close when the remote end is not reachable.
Change-Id: I14c45d05992c60 4691f2a4c1e7ddb 4c741f8fc99
Closes-Bug: #1461761