aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-03-14 23:36:38 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-14 22:36:38 +0100
commita281f1d21fed8136ce0b8160488464edf1ae885b (patch)
treefdb8720ef8de1873324df5e7108c1f3bf04d3f4e /client.go
parentclient: fix Do hangs when configure host client fails (#1514) (diff)
downloadfasthttp-a281f1d21fed8136ce0b8160488464edf1ae885b.tar.gz
fasthttp-a281f1d21fed8136ce0b8160488464edf1ae885b.tar.bz2
fasthttp-a281f1d21fed8136ce0b8160488464edf1ae885b.zip
client: HostClient.Do hangs out when ErrConnPoolStrategyNotImpl (#1515)
Diffstat (limited to 'client.go')
-rw-r--r--client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.go b/client.go
index e6d9381..8546a12 100644
--- a/client.go
+++ b/client.go
@@ -1534,6 +1534,7 @@ func (c *HostClient) acquireConn(reqTimeout time.Duration, connectionClose bool)
c.conns[n-1] = nil
c.conns = c.conns[:n-1]
default:
+ c.connsLock.Unlock()
return nil, ErrConnPoolStrategyNotImpl
}
}