public function onWorkerError(\Swoole\Server $server, int $worker_id, int $worker_pid, int $exit_code)
    {
        echo date('Y-m-d H:i:s') . " |\033[31m http worker process error[id={$worker_id} pid={$worker_pid}] ......\033[0m \n";

        // Add event Listener
        $this->add_event_listener('onWorkerError');
    }
public function onWorkerError(\Swoole\Server $server, int $worker_id, int $worker_pid, int $exit_code)
    {
        echo date('Y-m-d H:i:s') . " |\033[31m http worker process error[id={$worker_id} pid={$worker_pid}] ......\033[0m \n";

        // Add event Listener
        $this->add_event_listener('onWorkerError');
    }
public function onWorkerError ( \ Swoole \ Server $ server , int $ worker_id , int $ worker_pid , int $ exit_code ) { echo date ( 'Y-m-d H:i:s' ) . " |\033[31m http worker process error[id={$worker_id} pid={$worker_pid}] ......\033[0m \n" ; // Add event Listener $ this -> add_event_listener ( 'onWorkerError' ) ; }
On work stop

@param \Swoole\Server $server
@param integer $worker_id
@param integer $worker_pid
@param integer $exit_code
@return void
On work stop