{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/48248","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/48248/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/48248/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/48248/events","html_url":"https://github.com/Homebrew/homebrew/pull/48248","id":127446970,"number":48248,"title":"update-bash: add connectivity check","user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars.githubusercontent.com/u/6998367?v=3","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-19T13:31:56Z","updated_at":"2016-01-19T13:57:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/48248","html_url":"https://github.com/Homebrew/homebrew/pull/48248","diff_url":"https://github.com/Homebrew/homebrew/pull/48248.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/48248.patch"},"body":"Resolves half of #48193.\r\n\r\nOffline:\r\n```\r\n~> brew update-bash\r\nCannot connect to github.com; please ensure you have Internet connection!\r\n```\r\nOnline (You didn't merge anything in my absence :stuck_out_tongue_winking_eye:)\r\n```\r\n~> brew update-bash\r\nAlready up-to-date.\r\n```\r\n\r\nOnline this test takes about 0.6 seconds to execute, offline it times out at 2 seconds as instructed. As mentioned in https://github.com/Homebrew/homebrew/issues/48193#issuecomment-172842767 we could switch to using Debian's website for the check if we're worried about the 0.6 seconds as Debian tends to take 1/2 to 3/4 of that (probably due to defining fewer headers).\r\n\r\nCC @mikemcquaid @xu-cheng @bfontaine "},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/172860922","html_url":"https://github.com/Homebrew/homebrew/pull/48248#issuecomment-172860922","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/48248","id":172860922,"user":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"created_at":"2016-01-19T13:57:29Z","updated_at":"2016-01-19T13:57:29Z","body":"On further thought: my concern here is that, to increase the usability of an edge-case we add the overhead of a blocking HTTP call to all users."}}