From aa0e09485176f1963dc574b1bd67828d51bd4065 Mon Sep 17 00:00:00 2001 From: Yun <995116474@qq.com> Date: Tue, 7 Jan 2025 13:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=81=E5=BC=8F=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E7=9A=84=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- curlx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curlx.go b/curlx.go index 5205d05..84c0d96 100644 --- a/curlx.go +++ b/curlx.go @@ -315,7 +315,7 @@ func (c *Curlx) SendStream(ctx context.Context, ps ...Param) (<-chan string, err go func() { defer close(data) - ctx, cancel := context.WithTimeout(context.Background(), time.Minute*30) + ctx, cancel := context.WithTimeout(context.Background(), c.opts.TimeOut) defer cancel() _, response, err := c.SendExec(ctx, ps...)