This commit is contained in:
gospider
2024-12-06 21:25:11 +08:00
parent ccfedb27ae
commit 8ab64c5d00
13 changed files with 80 additions and 64 deletions

View File

@@ -141,7 +141,7 @@ func (obj *connecotr) http3Req(task *reqTask, done chan struct{}) {
func (obj *connecotr) waitBodyClose() error {
select {
case <-obj.bodyCtx.Done(): //wait body close
if err := context.Cause(obj.bodyCtx); errors.Is(err, ErrgospiderBodyClose) {
if err := context.Cause(obj.bodyCtx); errors.Is(err, errGospiderBodyClose) {
return nil
} else {
return err