-
Notifications
You must be signed in to change notification settings - Fork 784
RPC Client接收超过64k的数据会丢包 #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
使用下载下来的demoService 可以做测试, getUser 直接返回数据 64k 以内可以正常返回 超过64k会报错 |
你配置的包最大长度是多少? |
eof_split也要为true,确保分包没问题 |
具体配置都配了 我下载的你们的包 在里面验证了也是一样 我把包发上来你们看看 swoole swoole support => enabled Directive => Local Value => Master Value |
@chongzi5210 请使用最新版的 swoft 项目,并将组件更新至最新版测试,demo 缺少一下配置
|
你的包里面压根没有 |
可能我打包搞错了 我确实添加了这些参数 测试了的 而且你说了之后我又检查了 设置后测试还是一样的 |
十分喜欢这个框架 也感谢你们做出这么优秀的东西 如果我打的包里面没有带上这两个参数是我的失误, 我道歉。 但是请不要怀疑我的智商。 打包问题是因为我有个项目用这个框架做的, 发现问题不好打包那个项目, 所以从下载了干净的包,添加了点测试代码, 可能转过来的时候漏掉了。 刚刚我特意搞了个新环境 composer 重新拉了代码, 检查了参数,结果依然。 如果你们确认没有问题,那就当我傻逼吧,请关闭我的问题 |
收包分包都是Swoole来完成的,只要相关的参数被正确的配置进去,请参考 https://wiki.swoole.com/wiki/page/421.html |
@chongzi5210
这个代码即可,主要swoft 中的rpc-client 漏掉了粘包过程 |
php --ri swoole
)php -v
)Details
// paste output here
// paste code
The text was updated successfully, but these errors were encountered: