mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
cnl bug
This commit is contained in:
@@ -213,7 +213,7 @@ func (obj *roundTripper) poolRoundTrip(ctxData *reqCtxData, task *reqTask, key s
|
||||
case <-task.emptyPool:
|
||||
return true
|
||||
case <-task.ctx.Done():
|
||||
if task.err==nil{
|
||||
if task.err==nil && task.res==nil {
|
||||
task.err=task.ctx.Err()
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user