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/12142 github. org/Juniper/ contrail- controller/ commit/ 36746a15c59cf4a 7358c9a2549740c 259aff4e5e
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 36746a15c59cf4a 7358c9a2549740c 259aff4e5e
Author: Raj Reddy <email address hidden>
Date: Wed Jul 1 15:32: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: I90b9ece162babc 4ccc23498eec608 2d20fa6c461
Partial-Bug: #1461761