Skip to content

Commit f8bed25

Browse files
[HttpClient] fix management of shorter-than-requested timeouts with AmpHttpClient
1 parent 61800fa commit f8bed25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Test/Fixtures/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
echo '<1>';
117117
@ob_flush();
118118
flush();
119-
usleep(600000);
119+
usleep(500000);
120120
echo '<2>';
121121
exit;
122122

Test/HttpClientTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ public function testTimeoutIsNotAFatalError()
745745
usleep(300000); // wait for the previous test to release the server
746746
$client = $this->getHttpClient(__FUNCTION__);
747747
$response = $client->request('GET', 'http://localhost:8057/timeout-body', [
748-
'timeout' => 0.3,
748+
'timeout' => 0.25,
749749
]);
750750

751751
try {

0 commit comments

Comments
 (0)