hashicorp / hashicorp/go-retryablehttp

Detect that GET was terminated early and retry

Open
#152 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
298
PR merge metrics
No merged PRs in 30d

Description

I am trying to download a large file over HTTP and connection is getting simply terminated by the server. With `wget` it automatically retries because it knows that download has not yet reached `Content-Length` response size. But I was hoping that this package will also retry but it seems this is not so. So I am opening a feature request to suggest that it should retry also if:
* Response had `Content-Length` header in response.
* Server is indicating it supports `Range` request header.
* Response was terminated before full response was read.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.