udp: add heartbeat in udp work connection

This commit is contained in:
fatedier
2017-05-15 00:08:21 +08:00
parent a84dd05351
commit 69b09eb8a2
8 changed files with 74 additions and 36 deletions

View File

@@ -54,8 +54,8 @@ func GetDeaultClientCommonConf() *ClientCommonConf {
PrivilegeToken: "",
PoolCount: 1,
User: "",
HeartBeatInterval: 10,
HeartBeatTimeout: 30,
HeartBeatInterval: 30,
HeartBeatTimeout: 90,
}
}

View File

@@ -77,7 +77,7 @@ func GetDefaultServerCommonConf() *ServerCommonConf {
AuthTimeout: 900,
SubDomainHost: "",
MaxPoolCount: 10,
HeartBeatTimeout: 30,
HeartBeatTimeout: 90,
UserConnTimeout: 10,
}
}