From cc8f9eab224819cded03a4dcbc740a587e2f2ece Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Tue, 27 Apr 2021 08:49:23 +0300 Subject: [PATCH] change timeout --- server/web/api/utils/link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/web/api/utils/link.go b/server/web/api/utils/link.go index ba2f004..e78ad1e 100644 --- a/server/web/api/utils/link.go +++ b/server/web/api/utils/link.go @@ -81,7 +81,7 @@ func fromHttp(link string) (*torrent.TorrentSpec, error) { } client := new(http.Client) - client.Timeout = time.Duration(time.Second * 120) + client.Timeout = time.Duration(time.Second * 60) req.Header.Set("User-Agent", "DWL/1.1.1 (Torrent)") resp, err := client.Do(req)