//HttpSession监听 public interface HttpSessionActivationListener extends EventListener { /** Notification that the session is about to be passivated.*/ //session无效监听 public void sessionWillPassivate(HttpSessionEvent se); /** Notification that the sessi
今天测试swoole写webserver实现多端口监听.记录下爬过的坑:关于tcp协议监听触发不到receive!!!!! 首先上服务端代码 class Http { /** * 服务实例 * @var Server */ protected $server; public function run(){ $setting = Config::get('http'); /*开启监听*/ $this->server = new Server($setting['host'],$setting['p