Skip to content

Commit

Permalink
Set logger when using safe socket in coroutine style tcp server.
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Sep 30, 2023
1 parent a0accf6 commit f3d0f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CoroutineServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function bindServerCallbacks(int $type, string $name, array $callbacks
$fd = $socket->fd;
$options = $port->getOptions();
if ($options && $options->getSendChannelCapacity() > 0) {
$socket = new SafeSocket($socket, $options->getSendChannelCapacity(), false);
$socket = new SafeSocket($socket, $options->getSendChannelCapacity(), false, $this->logger);
$connection = new Connection($socket);
}

Expand Down

0 comments on commit f3d0f01

Please sign in to comment.