{"action":"closed","issue":{"url":"https://api.github.com/repos/marcushat/RollingCurlX/issues/16","repository_url":"https://api.github.com/repos/marcushat/RollingCurlX","labels_url":"https://api.github.com/repos/marcushat/RollingCurlX/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/marcushat/RollingCurlX/issues/16/comments","events_url":"https://api.github.com/repos/marcushat/RollingCurlX/issues/16/events","html_url":"https://github.com/marcushat/RollingCurlX/issues/16","id":141863116,"number":16,"title":"How to add retry in RollingCurlX?","user":{"login":"nikola8","id":17928406,"avatar_url":"https://avatars.githubusercontent.com/u/17928406?v=3","gravatar_id":"","url":"https://api.github.com/users/nikola8","html_url":"https://github.com/nikola8","followers_url":"https://api.github.com/users/nikola8/followers","following_url":"https://api.github.com/users/nikola8/following{/other_user}","gists_url":"https://api.github.com/users/nikola8/gists{/gist_id}","starred_url":"https://api.github.com/users/nikola8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikola8/subscriptions","organizations_url":"https://api.github.com/users/nikola8/orgs","repos_url":"https://api.github.com/users/nikola8/repos","events_url":"https://api.github.com/users/nikola8/events{/privacy}","received_events_url":"https://api.github.com/users/nikola8/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marcushat/RollingCurlX/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-18T13:16:49Z","updated_at":"2016-03-18T21:00:47Z","closed_at":"2016-03-18T21:00:47Z","body":"\r\n I would like to implement this code that retires connection several times:\r\n\r\n$curl = curl_init();\r\ncurl_setopt_array($curl, $options);\r\n$response = curl_exec($curl);\r\n$retry = 0;\r\nwhile(curl_errno($curl) == 28 && $retry < 5){\r\n    $response = curl_exec($curl);\r\n    $retry++;\r\n}\r\n\r\nIs there any way to implement it inside your class?\r\n"}}