请问webman的session目前支持协程环境吗 官方有考虑升级下吗
2.1的就支持
确定吗 在文档的哪里 没看到
https://github.com/walkor/workerman/blob/bbb01ba522e99e2f592c649ce59eb89a575c2b1c/src/Protocols/Http/Request.php#L303
这个Request类里面没看到处理协程相关的代码
webman-framework/src/App.php 中使用Context处理了:
public function onMessage($connection, $request) { try { Context::reset(new ArrayObject([Request::class => $request])); //... } }
https://www.workerman.net/q/14515 这篇帖子是怎么回事呢 他使用了session 使用了swoole协程 然后报错
那是redis驱动问题,用文件驱动就没问题。 也不是webman的锅,从workerman里面就有,webman允许配置自己的handler。
handler
2.1的就支持
确定吗 在文档的哪里 没看到
https://github.com/walkor/workerman/blob/bbb01ba522e99e2f592c649ce59eb89a575c2b1c/src/Protocols/Http/Request.php#L303
这个Request类里面没看到处理协程相关的代码
webman-framework/src/App.php 中使用Context处理了:
https://www.workerman.net/q/14515 这篇帖子是怎么回事呢 他使用了session 使用了swoole协程 然后报错
那是redis驱动问题,用文件驱动就没问题。
也不是webman的锅,从workerman里面就有,webman允许配置自己的
handler
。