think-swoole
think-swoole copied to clipboard
Swoole extend for thinkphp
支持 multi app
请教下tp8多应用模式下 think-swoole php think swoole 子应用下 路由无效怎么解决 app/ ├── api/ │ ├── route/ │ │ ├── api.php │ │ └── user.php │ └── ... ├── adminapi/ │ ├── route/ │...
我看到热更新时,是发送 `SIGUSR1` 信号的: ```php $watcher->watch(function () use ($pool) { Process::kill($pool->master_pid, SIGUSR1); }); ``` 我测试过,在一个请求中 `sleep(10)`,在 sleep 结束前随便修改一行代码触发热更新,之前 `sleep(10)` 的请求就自动结束了 请问有什么办法重启时让之前正在执行的请求顺利执行完吗?
close #360
symfony/finder版本已经到7.0了
PHP Fatal error: Uncaught think\swoole\exception\RpcClientException: Error receiving data, errno=54 errmsg=Connection reset by peer in /Users/sky/work/project/game/vendor/topthink/think-swoole/src/concerns/InteractsWithRpcConnector.php:52 'rpc' => [ 'server' => [ 'enable' => true, 'host' => '0.0.0.0', 'port' => 9000,...
修复和功能描述: 1.合并4.0的沙盒获取方式 2.创建子协程造成获取Container失败 3.子协程逃逸后沙盒内存泄漏的处理 问题描述: 1. 3.0不支持在如控制器等地方直接go(),自己创建子协程,如直接使用会出现The app object has not been initialized。合并4.0的相关代码 ``` protected function getSnapshotId($init=false) { if ($fd = Context::getData('_fd')) { return 'fd_' . $fd; } if ($init)...
This pull request applies code style fixes from an analysis carried out by [StyleCI](https://github.styleci.io). --- For more information, click [here](https://github.styleci.io/analyses/jlbOGB).
开启协程后,控制器或中间件中如何异步执行多条查询,并等待所有查询结束回调