{"action":"created","issue":{"url":"https://api.github.com/repos/stripe/stripe-ruby/issues/353","labels_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/353/comments","events_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/353/events","html_url":"https://github.com/stripe/stripe-ruby/pull/353","id":117359152,"number":353,"title":"feat(request): optionally retry network failures","user":{"login":"nbrustein","id":82556,"avatar_url":"https://avatars.githubusercontent.com/u/82556?v=3","gravatar_id":"","url":"https://api.github.com/users/nbrustein","html_url":"https://github.com/nbrustein","followers_url":"https://api.github.com/users/nbrustein/followers","following_url":"https://api.github.com/users/nbrustein/following{/other_user}","gists_url":"https://api.github.com/users/nbrustein/gists{/gist_id}","starred_url":"https://api.github.com/users/nbrustein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbrustein/subscriptions","organizations_url":"https://api.github.com/users/nbrustein/orgs","repos_url":"https://api.github.com/users/nbrustein/repos","events_url":"https://api.github.com/users/nbrustein/events{/privacy}","received_events_url":"https://api.github.com/users/nbrustein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-11-17T13:57:23Z","updated_at":"2015-11-23T19:50:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stripe/stripe-ruby/pulls/353","html_url":"https://github.com/stripe/stripe-ruby/pull/353","diff_url":"https://github.com/stripe/stripe-ruby/pull/353.diff","patch_url":"https://github.com/stripe/stripe-ruby/pull/353.patch"},"body":"Retries can be turned on by setting\r\n\r\n    Stripe.max_retries_on_network_failure = 2 # or any other positive integer\r\n\r\nOnce the `max_retries_on_network_failure` is set to a positive integer, and request that fails on a network error will be retried.  There will be a sleep between each retry, the length of which is determined using an exponential backoff algorithm.\r\n\r\nIf a post request is made without an idempotency key and retries are on, then an idempotency key will be added automatically, since it is unsafe to retry without one.\r\n\r\n`max_retry_sleep_seconds` is a float that can be set to configure that maximum time to sleep between retries (default is 2 seconds)\r\n\r\n`base_retry_sleep_seconds` is a float can be set to configure the time to wait before the initial retry (default is 0.5 seconds)"},"comment":{"url":"https://api.github.com/repos/stripe/stripe-ruby/issues/comments/159043327","html_url":"https://github.com/stripe/stripe-ruby/pull/353#issuecomment-159043327","issue_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/353","id":159043327,"user":{"login":"kyleconroy","id":34893,"avatar_url":"https://avatars.githubusercontent.com/u/34893?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleconroy","html_url":"https://github.com/kyleconroy","followers_url":"https://api.github.com/users/kyleconroy/followers","following_url":"https://api.github.com/users/kyleconroy/following{/other_user}","gists_url":"https://api.github.com/users/kyleconroy/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleconroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleconroy/subscriptions","organizations_url":"https://api.github.com/users/kyleconroy/orgs","repos_url":"https://api.github.com/users/kyleconroy/repos","events_url":"https://api.github.com/users/kyleconroy/events{/privacy}","received_events_url":"https://api.github.com/users/kyleconroy/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T19:50:00Z","updated_at":"2015-11-23T19:50:00Z","body":"LGTM @brandur can you take one last look as well?"}}