2
0

Update recws.go

This commit is contained in:
Nikolay Pavlovich
2022-07-07 17:29:43 +03:00
committed by GitHub
parent b75eaf3c16
commit 6c6a4a0ded
+1 -1
View File
@@ -409,7 +409,7 @@ func (rc *RecConn) keepAlive() {
}
<-ticker.C
timeoutOffset := time.Millisecond * 10
timeoutOffset := time.Millisecond * 50
if time.Since(keepAliveResponse.getLastResponse()) > rc.getKeepAliveTimeout()+timeoutOffset {
rc.CloseAndReconnect()
return