Skip to content

Commit

Permalink
Close connection after throw
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Nov 28, 2024
1 parent 745444b commit ece30c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/Connection/Http2ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,10 @@ public function testServerGoAwayFrame(): void
$this->expectException(SocketException::class);
$this->expectExceptionMessage('Received GOAWAY frame');

$response2 = $response2Future->await();
try {
$response2 = $response2Future->await();
} finally {
$this->connection->close();
}
}
}

0 comments on commit ece30c1

Please sign in to comment.