diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-02-27T13·36+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-02-27T13·36+0100 |
commit | 3cb0387d3f0932c9ce6f0aca2663860da7a65fb0 (patch) | |
tree | 2140d5a256b148701de99cfeb296eafbb0bc8fa6 /src/libstore/download.cc | |
parent | f0bbd153c6e38b8334faa237e9741e5b7dd37e2f (diff) |
Retry downloads on HTTP/2 stream errors
Issue #1254.
Diffstat (limited to 'src/libstore/download.cc')
-rw-r--r-- | src/libstore/download.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc index a56fd6922a5c..c0cec658cbbf 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -273,7 +273,9 @@ struct CurlDownloader : public Downloader httpStatus == 403 ? Forbidden : (httpStatus == 408 || httpStatus == 500 || httpStatus == 503 || 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; attempt++; |