Skip to content

Commit

Permalink
Merge pull request #1306 from copumpkin/retry-on-ssl-error
Browse files Browse the repository at this point in the history
Retry downloads on transient SSL errors too
  • Loading branch information
edolstra committed Apr 7, 2017
2 parents ba20730 + 9828391 commit d8ff3aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstore/download.cc
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ struct CurlDownloader : public Downloader
|| httpStatus == 504 || httpStatus == 522 || httpStatus == 524
|| code == CURLE_COULDNT_RESOLVE_HOST
|| code == CURLE_RECV_ERROR
// this is a generic SSL failure that in some cases (e.g., certificate error) is permanent but also appears in transient cases, so we consider it retryable
|| code == CURLE_SSL_CONNECT_ERROR
#if LIBCURL_VERSION_NUM >= 0x073200
|| code == CURLE_HTTP2
|| code == CURLE_HTTP2_STREAM
Expand Down

0 comments on commit d8ff3aa

Please sign in to comment.