{"action":"closed","issue":{"url":"https://api.github.com/repos/Homebrew/brew/issues/1234","repository_url":"https://api.github.com/repos/Homebrew/brew","labels_url":"https://api.github.com/repos/Homebrew/brew/issues/1234/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/1234/comments","events_url":"https://api.github.com/repos/Homebrew/brew/issues/1234/events","html_url":"https://github.com/Homebrew/brew/issues/1234","id":181455511,"number":1234,"title":"make curl more resilient to failures","user":{"login":"bfontaine","id":1334295,"avatar_url":"https://avatars.githubusercontent.com/u/1334295?v=3","gravatar_id":"","url":"https://api.github.com/users/bfontaine","html_url":"https://github.com/bfontaine","followers_url":"https://api.github.com/users/bfontaine/followers","following_url":"https://api.github.com/users/bfontaine/following{/other_user}","gists_url":"https://api.github.com/users/bfontaine/gists{/gist_id}","starred_url":"https://api.github.com/users/bfontaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfontaine/subscriptions","organizations_url":"https://api.github.com/users/bfontaine/orgs","repos_url":"https://api.github.com/users/bfontaine/repos","events_url":"https://api.github.com/users/bfontaine/events{/privacy}","received_events_url":"https://api.github.com/users/bfontaine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-06T15:56:01Z","updated_at":"2016-10-29T12:56:22Z","closed_at":"2016-10-29T12:56:22Z","body":"_From @rdp on October 5, 2016 23:4_\n\nAs a note, I once got this:\r\n\r\n```\r\n$brew install rpm\r\n==> Installing dependencies for rpm: berkeley-db, libmagic, popt, libtasn1, ossp-uuid\r\n==> Installing rpm dependency: berkeley-db\r\n==> Downloading https://homebrew.bintray.com/bottles/berkeley-db-6.1.26.el_capitan.bottle.tar.gz\r\n\r\ncurl: (35) Server aborted the SSL handshake\r\nError: Failed to download resource \"berkeley-db\"\r\nDownload failed: https://homebrew.bintray.com/bottles/berkeley-db-6.1.26.el_capitan.bottle.tar.gz\r\nWarning: Bottle installation failed: building from source.\r\n==> Using the sandbox\r\n==> Downloading http://download.oracle.com/berkeley-db/db-6.1.26.tar.gz\r\n\r\ncurl: (52) Empty reply from server\r\nError: Failed to download resource \"berkeley-db\"\r\nDownload failed: http://download.oracle.com/berkeley-db/db-6.1.26.tar.gz\r\n```\r\n\r\nbut on retry it worked:\r\n\r\n```\r\n$brew install rpm\r\n==> Installing dependencies for rpm: berkeley-db, libmagic, popt, libtasn1, ossp-uuid\r\n==> Installing rpm dependency: berkeley-db\r\n==> Downloading https://homebrew.bintray.com/bottles/berkeley-db-6.1.26.el_capitan.bottle.tar.gz\r\n###############################                                           43.5%\r\n######################################################################## 100.0%\r\n==> Pouring berkeley-db-6.1.26.el_capitan.bottle.tar.gz\r\n```\r\n\r\nSuggestion/feature request: make curl more resilient to failures, this may help anyway (sorry for the manual diff, I'd be happy to convert to pull request if it has a chance of being accepted and that would help).\r\nCheers!\r\n\r\n\r\n```\r\n\r\ndiff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb\r\nindex 00c3a59..2b706ac 100644\r\n--- a/Library/Homebrew/utils/curl.rb\r\n+++ b/Library/Homebrew/utils/curl.rb\r\n@@ -12,6 +12,7 @@ def curl_args(extra_args = [])\r\n   args = [curl.to_s] + flags + extra_args\r\n   args << \"--verbose\" if ENV[\"HOMEBREW_CURL_VERBOSE\"]\r\n   args << \"--silent\" if !$stdout.tty? || ENV[\"TRAVIS\"]\r\n+  args << \"--retry 5\"\r\n   args\r\n end\r\n\r\n```\n\n_Copied from original issue: Homebrew/homebrew-core#5618_"}}
{"actor":{"display_login":"MikeMcQuaid"}}