Skip to content

Commit

Permalink
Avoid closing connection immediately after second response
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Aug 30, 2023
1 parent 45ded22 commit 35e8ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ClientHttpBinIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35e8ecb

Please sign in to comment.