mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-20 17:08:20 +08:00
Chore: adjust the keep-alive time
This commit is contained in:
parent
2a8347cfa7
commit
c618a5f400
@ -88,6 +88,6 @@ func selectFast(in chan interface{}) chan interface{} {
|
||||
func tcpKeepAlive(c net.Conn) {
|
||||
if tcp, ok := c.(*net.TCPConn); ok {
|
||||
tcp.SetKeepAlive(true)
|
||||
tcp.SetKeepAlivePeriod(3 * time.Minute)
|
||||
tcp.SetKeepAlivePeriod(30 * time.Second)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user