about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-02-27T13·36+0100
committerEelco Dolstra <edolstra@gmail.com>2017-02-27T13·36+0100
commit3cb0387d3f0932c9ce6f0aca2663860da7a65fb0 (patch)
tree2140d5a256b148701de99cfeb296eafbb0bc8fa6
parentf0bbd153c6e38b8334faa237e9741e5b7dd37e2f (diff)
Retry downloads on HTTP/2 stream errors
Issue #1254.
-rw-r--r--src/libstore/download.cc4
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++;