From e277a92a2fb0c13903ff0e0d416bbb00a4a67e7a Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 23 Feb 2019 11:15:18 +0100 Subject: [PATCH 1/2] self-update: Don't cancel download after 30 seconds --- internal/selfupdate/github.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/selfupdate/github.go b/internal/selfupdate/github.go index 541112abc..637f6765e 100644 --- a/internal/selfupdate/github.go +++ b/internal/selfupdate/github.go @@ -112,9 +112,6 @@ func GitHubLatestRelease(ctx context.Context, owner, repo string) (Release, erro } func getGithubData(ctx context.Context, url string) ([]byte, error) { - ctx, cancel := context.WithTimeout(ctx, githubAPITimeout) - defer cancel() - req, err := http.NewRequest(http.MethodGet, url, nil) if err != nil { return nil, err From 9f436d80e1a8d50d940308f825a06ecdf48e6ade Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 23 Feb 2019 11:16:08 +0100 Subject: [PATCH 2/2] Add changelog file --- changelog/unreleased/issue-2181 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/unreleased/issue-2181 diff --git a/changelog/unreleased/issue-2181 b/changelog/unreleased/issue-2181 new file mode 100644 index 000000000..aa42c45e1 --- /dev/null +++ b/changelog/unreleased/issue-2181 @@ -0,0 +1,3 @@ +Bugfix: Don't cancel timeout after 30 seconds for self-update + +https://github.com/restic/restic/issues/2181