Skip to content
Snippets Groups Projects
Unverified Commit 0b9ba3f8 authored by fangyincheng's avatar fangyincheng Committed by GitHub
Browse files

Merge pull request #360 from divebomb/1.3

Fix: do not close conn when can not get response
parents 5170808e a0a21d0a
No related branches found
No related tags found
No related merge requests found
......@@ -258,8 +258,8 @@ func (c *Client) call(ct CallType, request *Request, response *Response, callbac
select {
case <-getty.GetTimeWheel().After(c.opts.RequestTimeout):
err = errClientReadTimeout
c.removePendingResponse(SequenceType(rsp.seq))
return perrors.WithStack(errClientReadTimeout)
case <-rsp.done:
err = rsp.err
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment