gobgp icon indicating copy to clipboard operation
gobgp copied to clipboard

server: disable tcpkeepalive

Open ChenYahui2019 opened this issue 1 year ago • 4 comments

The default value for tcpkeepalive in the golang net package is 15 seconds, while the default value for BGP keepalive is 30 seconds. If the network is not good, the TCP connection is disconnected before BGP can send keepalive messages.

Therefore, BGP keepalive is effectively invalid.

The solution is that since we have BGP keepalive, we don't need to open tcp keepalive.

ChenYahui2019 avatar Mar 08 '23 11:03 ChenYahui2019