From 45fbdfe74aaf3d84194961294a625a41375e9aa2 Mon Sep 17 00:00:00 2001 From: warriorguo Date: Thu, 30 Sep 2021 12:28:24 +0800 Subject: [PATCH] fix an endless loop when pool get in fastpath --- pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pool.go b/pool.go index 4ebdfea..190401b 100644 --- a/pool.go +++ b/pool.go @@ -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 {