变更
This commit is contained in:
+5
-5
@@ -54,7 +54,7 @@ class Server extends HttpService
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function __construct(public State $state,
|
public function __construct(public State $state,
|
||||||
public CoroutineServer $manager,
|
public AsyncServer $manager,
|
||||||
public ContainerInterface $container,
|
public ContainerInterface $container,
|
||||||
public ProcessManager $processManager,
|
public ProcessManager $processManager,
|
||||||
public EventDispatch $dispatch,
|
public EventDispatch $dispatch,
|
||||||
@@ -72,10 +72,10 @@ class Server extends HttpService
|
|||||||
*/
|
*/
|
||||||
public function init(): void
|
public function init(): void
|
||||||
{
|
{
|
||||||
// $enable_coroutine = Config::get('server.settings.enable_coroutine', false);
|
$enable_coroutine = Config::get('server.settings.enable_coroutine', false);
|
||||||
// if (!$enable_coroutine) {
|
if (!$enable_coroutine) {
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
Coroutine::set([
|
Coroutine::set([
|
||||||
'hook_flags' => SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION,
|
'hook_flags' => SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION,
|
||||||
'enable_deadlock_check' => FALSE,
|
'enable_deadlock_check' => FALSE,
|
||||||
|
|||||||
Reference in New Issue
Block a user