{"action":"opened","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/3583","labels_url":"https://api.github.com/repos/bundler/bundler/issues/3583/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3583/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/3583/events","html_url":"https://github.com/bundler/bundler/issues/3583","id":69861647,"number":3583,"title":"make bundler connection options configurable","user":{"login":"peterlynch","id":193901,"avatar_url":"https://avatars.githubusercontent.com/u/193901?v=3","gravatar_id":"","url":"https://api.github.com/users/peterlynch","html_url":"https://github.com/peterlynch","followers_url":"https://api.github.com/users/peterlynch/followers","following_url":"https://api.github.com/users/peterlynch/following{/other_user}","gists_url":"https://api.github.com/users/peterlynch/gists{/gist_id}","starred_url":"https://api.github.com/users/peterlynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterlynch/subscriptions","organizations_url":"https://api.github.com/users/peterlynch/orgs","repos_url":"https://api.github.com/users/peterlynch/repos","events_url":"https://api.github.com/users/peterlynch/events{/privacy}","received_events_url":"https://api.github.com/users/peterlynch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T14:30:35Z","updated_at":"2015-04-21T14:30:35Z","closed_at":null,"body":"In environments where the remote server serving gems is slow to respond and or the work performed by the remote server to generate the response is significant ( long list of gems ) [the hardcoded connection timeout of 10 seconds](https://github.com/bundler/bundler/blob/master/lib/bundler/fetcher.rb#L61:L63) may not be enough to complete the request. Bundler will reset it's connection after 10 seconds and try again 3 times.\r\n\r\nIt would be helpful to provide a configuration option to adjust the connection timeout option so that bundler users can work around slowly performing hosts.\r\n\r\nSince the logic and code touched would be near identical, consider making retries and redirect limit configurable as well, although less important for the purposes of this report.\r\n\r\nThese settings are typically more important in corporate environments where requests are routed through all manner of proxies and firewalls.\r\n\r\n\r\n\r\n"}}