From 35e8ecb5ba25b67498c6611be72089d33d91c548 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Wed, 30 Aug 2023 23:59:55 +0200 Subject: [PATCH] Avoid closing connection immediately after second response --- test/ClientHttpBinIntegrationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ClientHttpBinIntegrationTest.php b/test/ClientHttpBinIntegrationTest.php index b0fd1005..92d526ee 100644 --- a/test/ClientHttpBinIntegrationTest.php +++ b/test/ClientHttpBinIntegrationTest.php @@ -532,7 +532,7 @@ public function testInfiniteRedirect(): void public function testConnectShortCircuitIfOtherConnectionBecomesAvailable(): void { $this->setTimeout(3); - $this->givenSlowRawServerResponse(1, "HTTP/1.1 204 No content\r\n\r\n", "HTTP/1.1 204 No content\r\n\r\n"); + $this->givenSlowRawServerResponse(1, "HTTP/1.1 204 No content\r\n\r\n", "HTTP/1.1 204 No content\r\n\r\n", ""); $this->builder = $this->builder->usingPool(new UnlimitedConnectionPool(new DefaultConnectionFactory(new class implements SocketConnector { public function connect(SocketAddress|string $uri, ?ConnectContext $context = null, ?Cancellation $cancellation = null): Socket