swoole_server->stop

使当前worker进程停止运行,并立即触发onWorkerStop回调函数。

function swoole_server->stop();

此方法在1.8.2或更高版本可用