From 3cb0387d3f0932c9ce6f0aca2663860da7a65fb0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 27 Feb 2017 14:36:09 +0100 Subject: [PATCH] Retry downloads on HTTP/2 stream errors Issue #1254. --- src/libstore/download.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libstore/download.cc b/src/libstore/download.cc index a56fd6922..c0cec658c 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++;