Skip to content

Commit

Permalink
add TCP Keep Alive support in config
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang committed Apr 28, 2022
1 parent c9e65b9 commit 8edf332
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infra/conf/transport_internet.go
Expand Up @@ -391,6 +391,7 @@ type SocketConfig struct {
TProxy string `json:"tproxy"`
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
TCPKeepAliveInterval int32 `json:"tcpKeepAliveInterval"`
TCPKeepAliveIdle int32 `json:"tcpKeepAliveIdle"`
}

// Build implements Buildable.
Expand Down Expand Up @@ -426,6 +427,7 @@ func (c *SocketConfig) Build() (*internet.SocketConfig, error) {
Tproxy: tproxy,
AcceptProxyProtocol: c.AcceptProxyProtocol,
TcpKeepAliveInterval: c.TCPKeepAliveInterval,
TcpKeepAliveIdle: c.TCPKeepAliveIdle,
}, nil
}

Expand Down

0 comments on commit 8edf332

Please sign in to comment.