Skip to content

Commit 69f0e3e

Browse files
lyrixxnicolas-grekas
authored andcommitted
[HttpClient] Remove CURLOPT_CONNECTTIMEOUT_MS curl opt
1 parent cc30689 commit 69f0e3e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Test/HttpClientTestCase.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,16 @@ public function testResolve()
583583
$client->request('GET', 'http://symfony.com:8057/', ['timeout' => 1]);
584584
}
585585

586+
public function testNotATimeout()
587+
{
588+
$client = $this->getHttpClient(__FUNCTION__);
589+
$response = $client->request('GET', 'http://localhost:8057/timeout-header', [
590+
'timeout' => 0.5,
591+
]);
592+
usleep(510000);
593+
$this->assertSame(200, $response->getStatusCode());
594+
}
595+
586596
public function testTimeoutOnAccess()
587597
{
588598
$client = $this->getHttpClient(__FUNCTION__);

0 commit comments

Comments
 (0)