Commit 8b46d0a3 authored by chenchuanwen's avatar chenchuanwen

bridgeedit

parent 98ebd25d
<?php
echo 'reload ok'.PHP_EOL;
// 通过链接参数热重载 worker 进程观察触发事件
if(!empty($request->get)){
$act = $request->get['act']?$request->get['act']:'';
if ($act == 'reload') {
echo ' ... Swoole Reloading ! ... ' . PHP_EOL . PHP_EOL;
echo 'reload ok'.PHP_EOL;
// 触发 reload 之后, 貌似后面的代码也还是会执行的
$http->reload();
echo ' ... Under Reload ! ... ' . PHP_EOL . PHP_EOL; // 看看 reload 时是否会执行后续的代码
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment