This commit is contained in:
2021-02-26 19:20:26 +08:00
parent e0849fd87d
commit 7e2c7456c7
+3
View File
@@ -61,6 +61,9 @@ class OnWorkerStart extends Callback
if ($sigkill === false) {
return $server->stop($workerId);
}
var_dump($server->getWorkerStatus($workerId));
while ($server->getWorkerStatus($workerId) === SWOOLE_WORKER_BUSY) {
Coroutine::sleep(0.01);
}