fine mux connection ping calculation, increase connection waiting time

This commit is contained in:
ffdfgdfg
2019-11-19 23:43:52 +08:00
parent 2ca84c912b
commit aaf79b21f0
4 changed files with 127 additions and 24 deletions

View File

@@ -288,7 +288,7 @@ func (Self *ReceiveWindowQueue) waitPush() (err error) {
//defer logs.Warn("wait push finish")
t := Self.timeout.Sub(time.Now())
if t <= 0 {
t = time.Second * 10
t = time.Minute * 5
}
timer := time.NewTimer(t)
defer timer.Stop()