今天测试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…