mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Retry on HTTP/2 frame errors as long as it do is making progress
Ref #767
This commit is contained in:
parent
26c9dc4dfb
commit
b918a7ea6f
2 changed files with 5 additions and 3 deletions
|
@ -412,7 +412,9 @@ void DownloadThread::run()
|
|||
/* Deal with badly configured HTTP servers that terminate the connection quickly
|
||||
if connections stalls for some seconds while kernel commits buffers to slow SD card.
|
||||
And also reconnect if we detect from our end that transfer stalled for more than one minute */
|
||||
while (ret == CURLE_PARTIAL_FILE || ret == CURLE_OPERATION_TIMEDOUT || (ret == CURLE_RECV_ERROR && _lastDlNow != _lastFailureOffset) )
|
||||
while (ret == CURLE_PARTIAL_FILE || ret == CURLE_OPERATION_TIMEDOUT
|
||||
|| (ret == CURLE_HTTP2_STREAM && _lastDlNow != _lastFailureOffset)
|
||||
|| (ret == CURLE_RECV_ERROR && _lastDlNow != _lastFailureOffset) )
|
||||
{
|
||||
time_t t = time(NULL);
|
||||
qDebug() << "HTTP connection lost. Time:" << t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue