Retry downloads on HTTP/2 stream errors

Issue #1254.
This commit is contained in:
Eelco Dolstra 2017-02-27 14:36:09 +01:00
parent f0bbd153c6
commit 3cb0387d3f
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -273,7 +273,9 @@ struct CurlDownloader : public Downloader
httpStatus == 403 ? Forbidden : httpStatus == 403 ? Forbidden :
(httpStatus == 408 || httpStatus == 500 || httpStatus == 503 (httpStatus == 408 || httpStatus == 500 || httpStatus == 503
|| httpStatus == 504 || httpStatus == 522 || httpStatus == 524 || httpStatus == 504 || httpStatus == 522 || httpStatus == 524
|| code == CURLE_COULDNT_RESOLVE_HOST || code == CURLE_RECV_ERROR) ? Transient : || code == CURLE_COULDNT_RESOLVE_HOST
|| code == CURLE_RECV_ERROR
|| code == CURLE_HTTP2_STREAM) ? Transient :
Misc; Misc;
attempt++; attempt++;