Skip to content

Commit

Permalink
Add support for the latest PHP-Quiche changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Apr 11, 2024
1 parent 489c457 commit 2751f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProxyServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private function createServerSocket(SocketAddress $socketAddress, Socket $notify
$pk->port = $peerAddress->getPort();
$this->sendToMainBuffer($streamIdentifier, $pk);

$stream->setShutdownReadingCallback(function (bool $peerClosed) use ($streamIdentifier): void {
$stream->addShutdownReadingCallback(function (bool $peerClosed) use ($streamIdentifier): void {
if ($peerClosed) {
if (isset($this->streamWriters[$streamIdentifier])) { // check if the stream is still open
$this->shutdownStream($streamIdentifier, 'client disconnect', false);
Expand Down

0 comments on commit 2751f13

Please sign in to comment.