Skip to content
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

Yar rpc接口处理返回较多数据时抛异常Yar_Client_Packager_Exception: unpack error at offset 0 of -8 bytes #137

Open
BensonWuu opened this issue Feb 21, 2019 · 1 comment

Comments

@BensonWuu
Copy link

BensonWuu commented Feb 21, 2019

运行环境描述:

Ubuntu 16.04.3 LTS,PHP7.2,
client yar version 2.0.4
server Yar version 2.0.4

image


问题场景描述:

提供数据的rpc接口一次性从数据库中取出10000行数据,每行数据大小平均1800字节,

进行处理再json_encode后return,抛出Yar异常错误
Yar_Client_Packager_Exception: unpack error at offset 0 of -8 bytes

经自测验证,若减少数据行到5000行数据,则正常返回,

或最终优化陈旧代码的select *仅返回需要的字段值,则也可正常返回。

@si812cn
Copy link

si812cn commented Mar 16, 2019

你的2.0.4版本的调用办法跟1.2.5一样的吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants