{"action":"created","issue":{"url":"https://api.github.com/repos/stripe/stripe-php/issues/214","labels_url":"https://api.github.com/repos/stripe/stripe-php/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-php/issues/214/comments","events_url":"https://api.github.com/repos/stripe/stripe-php/issues/214/events","html_url":"https://github.com/stripe/stripe-php/pull/214","id":122655634,"number":214,"title":"Allow user-defined override of timeouts","user":{"login":"iansltx","id":472804,"avatar_url":"https://avatars.githubusercontent.com/u/472804?v=3","gravatar_id":"","url":"https://api.github.com/users/iansltx","html_url":"https://github.com/iansltx","followers_url":"https://api.github.com/users/iansltx/followers","following_url":"https://api.github.com/users/iansltx/following{/other_user}","gists_url":"https://api.github.com/users/iansltx/gists{/gist_id}","starred_url":"https://api.github.com/users/iansltx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iansltx/subscriptions","organizations_url":"https://api.github.com/users/iansltx/orgs","repos_url":"https://api.github.com/users/iansltx/repos","events_url":"https://api.github.com/users/iansltx/events{/privacy}","received_events_url":"https://api.github.com/users/iansltx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-12-17T03:49:35Z","updated_at":"2015-12-25T03:10:20Z","closed_at":"2015-12-25T03:10:05Z","pull_request":{"url":"https://api.github.com/repos/stripe/stripe-php/pulls/214","html_url":"https://github.com/stripe/stripe-php/pull/214","diff_url":"https://github.com/stripe/stripe-php/pull/214.diff","patch_url":"https://github.com/stripe/stripe-php/pull/214.patch"},"body":"The default connect and response timeouts baked into the Stripe API Curl client are way too long (see https://github.com/stripe/stripe-ruby/issues/46 as wlel), exceeding the standard TTL for an ELB, for example, and are not configurable in any way by the user.\r\n\r\nThis PR, while a bit of a hack (I dislike static client configuration as little as the next dev), allows the user to override the CurlClient's default connect timeout and total timeout values to something more sane. Getters are also provided, in case you want to switch the timeout for a single call, then set it back to where it was later. Defaults are stored as constants for easier inspection."},"comment":{"url":"https://api.github.com/repos/stripe/stripe-php/issues/comments/167185314","html_url":"https://github.com/stripe/stripe-php/pull/214#issuecomment-167185314","issue_url":"https://api.github.com/repos/stripe/stripe-php/issues/214","id":167185314,"user":{"login":"bkrausz","id":364070,"avatar_url":"https://avatars.githubusercontent.com/u/364070?v=3","gravatar_id":"","url":"https://api.github.com/users/bkrausz","html_url":"https://github.com/bkrausz","followers_url":"https://api.github.com/users/bkrausz/followers","following_url":"https://api.github.com/users/bkrausz/following{/other_user}","gists_url":"https://api.github.com/users/bkrausz/gists{/gist_id}","starred_url":"https://api.github.com/users/bkrausz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkrausz/subscriptions","organizations_url":"https://api.github.com/users/bkrausz/orgs","repos_url":"https://api.github.com/users/bkrausz/repos","events_url":"https://api.github.com/users/bkrausz/events{/privacy}","received_events_url":"https://api.github.com/users/bkrausz/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T03:10:20Z","updated_at":"2015-12-25T03:10:20Z","body":"No problem, thanks again for the PR!"}}