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/12178 github. org/Juniper/ contrail- sandesh/ commit/ 40fdaf3e5471129 bce5dfe92d49b4d 9147688839
Committed: http://
Submitter: Zuul
Branch: master
commit 40fdaf3e5471129 bce5dfe92d49b4d 9147688839
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