This commit is contained in:
gospider
2023-12-26 20:58:11 +08:00
parent bcc14683c4
commit a7ef446472

View File

@@ -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