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.
Partial-Bug: #1461761
Reviewed: https:/ /review. opencontrail. org/12164 github. org/Juniper/ contrail- controller/ commit/ 5ed88321b7ba372 85c855704b0ed2a 4be6b28599
Committed: http://
Submitter: Zuul
Branch: master
commit 5ed88321b7ba372 85c855704b0ed2a 4be6b28599
Author: Raj Reddy <email address hidden>
Date: Thu Jul 2 17:28:24 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.
Partial-Bug: #1461761
Change-Id: I920f8e54798d27 abe570814841749 a7cea4ceb91