Skip to content

Commit

Permalink
fix an endless loop when pool get in fastpath
Browse files Browse the repository at this point in the history
  • Loading branch information
warriorguo authored and Brian Picciano committed Oct 2, 2021
1 parent 69371f6 commit 45fbdfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ func (p *Pool) getExisting() (*ioErrConn, error) {
return ioc, nil
default:
}
break // Failed to get from pool, so jump out to conduct for the next move.
}

if p.opts.onEmptyWait == 0 {
Expand Down

0 comments on commit 45fbdfe

Please sign in to comment.