mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +08:00
Fixed bug that root settings do not works when the slave servers set their own settings. (#1338)
This commit is contained in:
parent
5af92e9de7
commit
756572f7c7
@ -23,6 +23,7 @@
|
||||
## Fixed
|
||||
|
||||
- [#1330](https://github.com/hyperf/hyperf/pull/1330) Fixed bug when using `(new Parallel())->add($callback, $key)` and the parameter `$key` is a not string index, the returned result will sort `$key` from 0.
|
||||
- [#1388](https://github.com/hyperf/hyperf/pull/1338) Fixed bug that root settings do not works when the slave servers set their own settings.
|
||||
- [#1344](https://github.com/hyperf/hyperf/pull/1344) Fixed bug that queue length check every time when not set max messages.
|
||||
|
||||
# v1.1.17 - 2020-01-24
|
||||
|
@ -115,7 +115,7 @@ class Server implements ServerInterface
|
||||
if (! $slaveServer) {
|
||||
throw new \RuntimeException("Failed to listen server port [{$host}:{$port}]");
|
||||
}
|
||||
$server->getSettings() && $slaveServer->set($server->getSettings());
|
||||
$server->getSettings() && $slaveServer->set(array_replace($config->getSettings(), $server->getSettings()));
|
||||
$this->registerSwooleEvents($slaveServer, $callbacks, $name);
|
||||
ServerManager::add($name, [$type, $slaveServer]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user