This commit is contained in:
2023-08-11 02:35:46 +08:00
parent 3196a7cffb
commit bb4df7307a
2 changed files with 34 additions and 35 deletions
-4
View File
@@ -104,8 +104,6 @@ class AsyncServer implements ServerInterface
{
$this->server = new $match($config->host, $config->port, $config->mode, $config->socket);
$this->server->set($this->systemConfig($config, $daemon));
Logger::_alert('Listen ' . $config->type . ' address ' . $config->host . '::' . $config->port);
if (!isset($config->events[Constant::SHUTDOWN])) {
$config->events[Constant::SHUTDOWN] = [OnServer::class, 'onShutdown'];
}
@@ -161,8 +159,6 @@ class AsyncServer implements ServerInterface
throw new Exception('Listen port fail.' . swoole_last_error());
}
Logger::_alert('Listen ' . $config->type . ' address ' . $config->host . '::' . $config->port);
$port->set($this->resetSettings($config->type, $config->settings));
$this->onEventListen($port, $config->getEvents());