FabricTransportRemotingSettings.setKeepAliveTimeout(Duration keepAliveTimeout) 方法
定义
KeepAliveTimeout is provides a way to configure Tcp keep-alive option.
Remarks:Default Value for KeepAliveTimeout Timeout is set as TimeSpan.Zero. which indicates we disable the tcp keepalive option. If you are using loadbalancer , you may need to configure this in order to avoid the loadbalancer to close the connection after certain time
public void setKeepAliveTimeout(Duration keepAliveTimeout)
参数
- keepAliveTimeout
- Duration
as java.time.Duration