From: Antonio Ospite Date: Wed, 14 Nov 2018 16:03:06 +0000 (+0100) Subject: src/Tweeper.php: add a retry mechanism for cURL sessions X-Git-Tag: v1.4.0~6 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/6c535395860b51d2c1debf92437192c6bf862b16?hp=6c535395860b51d2c1debf92437192c6bf862b16 src/Tweeper.php: add a retry mechanism for cURL sessions Sometimes the connection to a remote host may stall and a resource cannot be retrieved. This makes Tweeper hang for a very long time which can be annoying for users. Setting a shorter timeout and a retry mechanism usually works around the problem allowing the resource to be retrieved eventually. Implement such a mechanism by adding curlExec() method and while at it move non-curl related messages outside of getUrlContents() and getUrlInfo() to give the user a better understanding of what actually failed when even the retry mechanism was not able to retrieve the resource. ---