aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-03-11 18:48:33 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-11 17:48:33 +0100
commit7846101dc65ee5e02cea672af4594e3a80048632 (patch)
treef7c47f6979d427dd4510a1147ebcbc00acd52f29 /client.go
parentFix proxy auth bug (diff)
downloadfasthttp-7846101dc65ee5e02cea672af4594e3a80048632.tar.gz
fasthttp-7846101dc65ee5e02cea672af4594e3a80048632.tar.bz2
fasthttp-7846101dc65ee5e02cea672af4594e3a80048632.zip
client: fix Do hangs when configure host client fails (#1514)
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 b4e332c..e6d9381 100644
--- a/client.go
+++ b/client.go
@@ -527,6 +527,7 @@ func (c *Client) Do(req *Request, resp *Response) error {
if c.ConfigureClient != nil {
if err := c.ConfigureClient(hc); err != nil {
+ c.mLock.Unlock()
return err
}
}