mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Retry once on (GnuTLS) Recv errors
Try resuming download on CURLE_RECV_ERROR. Will not retry more than once if nothing has been downloaded since last attempt. Ref #306
This commit is contained in:
parent
69f5799145
commit
be40f05b50
2 changed files with 4 additions and 2 deletions
|
@ -163,6 +163,7 @@ protected:
|
|||
CURL *_c;
|
||||
curl_off_t _startOffset;
|
||||
std::atomic<std::uint64_t> _lastDlTotal, _lastDlNow, _verifyTotal, _lastVerifyNow, _bytesWritten;
|
||||
std::uint64_t _lastFailureOffset;
|
||||
qint64 _sectorsStart;
|
||||
QByteArray _url, _useragent, _buf, _filename, _lastError, _expectedHash, _config, _cmdline, _firstrun, _cloudinit, _cloudinitNetwork, _initFormat;
|
||||
char *_firstBlock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue