{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/got/issues/136","labels_url":"https://api.github.com/repos/sindresorhus/got/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/got/issues/136/comments","events_url":"https://api.github.com/repos/sindresorhus/got/issues/136/events","html_url":"https://github.com/sindresorhus/got/issues/136","id":119170062,"number":136,"title":"Too large backoff timeout","user":{"login":"maxvipon","id":871596,"avatar_url":"https://avatars.githubusercontent.com/u/871596?v=3","gravatar_id":"","url":"https://api.github.com/users/maxvipon","html_url":"https://github.com/maxvipon","followers_url":"https://api.github.com/users/maxvipon/followers","following_url":"https://api.github.com/users/maxvipon/following{/other_user}","gists_url":"https://api.github.com/users/maxvipon/gists{/gist_id}","starred_url":"https://api.github.com/users/maxvipon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxvipon/subscriptions","organizations_url":"https://api.github.com/users/maxvipon/orgs","repos_url":"https://api.github.com/users/maxvipon/repos","events_url":"https://api.github.com/users/maxvipon/events{/privacy}","received_events_url":"https://api.github.com/users/maxvipon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-27T10:14:43Z","updated_at":"2015-12-01T12:19:13Z","closed_at":"2015-12-01T10:41:12Z","body":"Now the first retry takes ~2-2,5 sec. It's not acceptable in some cases when we load data from fast-response service with `timeout = 100 ms` and `retry = 2`\r\n```js\r\nfunction backoff(iter) {\r\n\tvar noise = Math.random() * 1000;\r\n\treturn (1 << iter) * 1000 + noise;\r\n}\r\n```\r\n```\r\n> backoff(1)\r\n2581.360480748117\r\n> backoff(1)\r\n2050.7622794248164\r\n> backoff(1)\r\n2390.814026352018\r\n> backoff(2)\r\n4402.163911843672\r\n> backoff(2)\r\n4387.177913216874\r\n> backoff(2)\r\n4485.101141734049\r\n```\r\n\r\nLet's add some option for backoff quantize?"},"comment":{"url":"https://api.github.com/repos/sindresorhus/got/issues/comments/160951561","html_url":"https://github.com/sindresorhus/got/issues/136#issuecomment-160951561","issue_url":"https://api.github.com/repos/sindresorhus/got/issues/136","id":160951561,"user":{"login":"maxvipon","id":871596,"avatar_url":"https://avatars.githubusercontent.com/u/871596?v=3","gravatar_id":"","url":"https://api.github.com/users/maxvipon","html_url":"https://github.com/maxvipon","followers_url":"https://api.github.com/users/maxvipon/followers","following_url":"https://api.github.com/users/maxvipon/following{/other_user}","gists_url":"https://api.github.com/users/maxvipon/gists{/gist_id}","starred_url":"https://api.github.com/users/maxvipon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxvipon/subscriptions","organizations_url":"https://api.github.com/users/maxvipon/orgs","repos_url":"https://api.github.com/users/maxvipon/repos","events_url":"https://api.github.com/users/maxvipon/events{/privacy}","received_events_url":"https://api.github.com/users/maxvipon/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T12:19:13Z","updated_at":"2015-12-01T12:19:13Z","body":"@floatdrop you decreased noise but not timeout))"}}