Simplify MultiCurl execution loop (#1017)

* Clean up

* Simplify MultiCurl execution loop

- Removes legacy workarounds
- Deprecates MultiCurl::setRequestTimeAccuracy()
- Removes use of CURLM_CALL_MULTI_PERFORM ("As of cURL 7.20.0, this constant is not used")
This commit is contained in:
Zach Borboa
2025-11-20 23:39:03 -05:00
committed by GitHub
parent 064e78f89a
commit 4b36f455dd
3 changed files with 5 additions and 55 deletions
+2 -4
View File
@@ -14,10 +14,6 @@ class TimeUtilTest extends \PHPUnit\Framework\TestCase
// [...]ime = microtime(true);
$start_time = (float)1_750_000_000.123456;
// Use a fixed current time that occurs after the start time.
// [...]_microtime = (float)1_750_000_045.000001;
$current_microtime = (float)1_750_000_044.999999;
$interval_seconds = 60;
$sleep_until_microtime = TimeUtil::getSleepUntilMicrotime(
$start_time,
@@ -33,6 +29,8 @@ class TimeUtilTest extends \PHPUnit\Framework\TestCase
public function testGetSleepSecondsUntilMicrotime()
{
$sleep_until_microtime = (float)1_750_000_060.123456;
// Use a fixed current time that occurs after the start time.
$current_microtime = (float)1_750_000_044.999999;
$sleep_seconds = TimeUtil::getSleepSecondsUntilMicrotime(