Skip to content

Commit

Permalink
Retry downloads on HTTP/2 stream errors
Browse files Browse the repository at this point in the history
Issue #1254.
  • Loading branch information
edolstra committed Feb 27, 2017
1 parent f0bbd15 commit 3cb0387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstore/download.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 3cb0387

Please sign in to comment.