Skip to content

Commit

Permalink
Unified shouldKeepAlive()
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Oct 28, 2022
1 parent 6f38420 commit b959630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http_server/mixed.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@
$connection->error(HttpStatus::NOT_FOUND);
}
} catch (HttpProtocolException $exception) {
$connection->error($exception->getCode(), $exception->getMessage());
$connection->error($exception->getCode(), $exception->getMessage(), close: true);
break;
}
if (!$request || !Psr7::detectShouldKeepAlive($request)) {
if (!$connection->shouldKeepAlive()) {
break;
}
}
Expand Down

0 comments on commit b959630

Please sign in to comment.