Merge branch v3.3 into v3.4
This commit is contained in:
commit
9c1902c62e
54 changed files with 1060 additions and 636 deletions
|
@ -131,11 +131,7 @@ func (l *Listener) Shutdown(graceTimeout time.Duration) error {
|
|||
}
|
||||
start := time.Now()
|
||||
end := start.Add(graceTimeout)
|
||||
for {
|
||||
if time.Now().After(end) {
|
||||
break
|
||||
}
|
||||
|
||||
for !time.Now().After(end) {
|
||||
l.mu.RLock()
|
||||
if len(l.conns) == 0 {
|
||||
l.mu.RUnlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue