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 -1
View File
@@ -97,7 +97,7 @@ func (c *http2Connector) Connect(ctx context.Context, conn net.Conn, network, ad
defer conn.SetDeadline(time.Time{})
}
resp, err := client.Do(req.WithContext(ictx.Copy(ctx)))
resp, err := client.Do(req.WithContext(context.WithoutCancel(ctx)))
if err != nil {
log.Error(err)
conn.Close()