We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e885b7 + 99a0b13 commit eb26e68Copy full SHA for eb26e68
lib/CurlRequest.php
@@ -35,6 +35,13 @@ class CurlRequest
35
*/
36
public static $lastHttpResponseHeaders = array();
37
38
+ /**
39
+ * Total time spent in sleep during multiple requests (in seconds)
40
+ *
41
+ * @var int
42
+ */
43
+ public static $totalRetrySleepTime = 0;
44
+
45
/**
46
* Curl additional configuration
47
*
@@ -196,6 +203,7 @@ protected static function processRequest($ch)
196
203
break;
197
204
}
198
205
206
+ self::$totalRetrySleepTime += (float)$retryAfter;
199
207
sleep((float)$retryAfter);
200
208
201
209
@@ -210,5 +218,4 @@ protected static function processRequest($ch)
210
218
211
219
return $response->getBody();
212
220
213
-
214
221
0 commit comments