without cancel the context

This commit is contained in:
ginuerzh
2025-08-05 20:24:00 +08:00
parent fd9dc6408a
commit 404aaae5f1
8 changed files with 11 additions and 46 deletions
+1 -2
View File
@@ -16,7 +16,6 @@ import (
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
xctx "github.com/go-gost/x/ctx"
ictx "github.com/go-gost/x/internal/ctx"
"github.com/go-gost/x/internal/net/proxyproto"
"github.com/go-gost/x/registry"
"golang.org/x/net/http2"
@@ -170,7 +169,7 @@ func (d *h2Dialer) Dial(ctx context.Context, address string, opts ...dialer.Dial
d.logger.Trace(string(dump))
}
resp, err := client.Do(req.WithContext(ictx.Copy(ctx)))
resp, err := client.Do(req.WithContext(context.WithoutCancel(ctx)))
if err != nil {
return nil, err
}