Open dargoner opened 2 years ago
调大这个MAX_DATA_SIZE限制,好像无效,继续报错,暂时无解
What are the error logs about this? Are you observing errors generated by this limitation?
调大这个MAX_DATA_SIZE限制,好像无效,继续报错,暂时无解
What are the error logs about this? Are you observing errors generated by this limitation?
ext-plugin/init.lua postman test apisix error
So that's the limit. After you adjust MAX_DATA_SIZE, you say it doesn't work, are there some error logs about it?
So that's the limit. After you adjust MAX_DATA_SIZE, you say it doesn't work, are there some error logs about it?
plugin error
调整为:MAX_DATA_SIZE=1024x1024x110
调整为:MAX_DATA_SIZE=1024x1024x110
OK it looks like the plugin runner doesn't handle exceeding MAX_DATA_SIZE very well at the moment. plugin runner is not designed for such a large body scenario. But I don't think it matters now. Can I know your scenario? When would you need to pass a body larger than 16 M to the plugin runner?
主要业务场景需要的,上传附件比较大,如扫描的影像件(一起压缩后也很大)等,也不是要能无限大,能调整到100-200m左右应该也够了。
是不是netty什么限制
I will track this issue
After verification, I think the problem is related to the maximum size of the StringBuilder. ref: https://stackoverflow.com/questions/38067717/how-many-characters-can-a-java-stringbuilder-hold
100M file over the max size of StringBuilder
MAX_DATA_SIZE 调大到100,但是上传30m附件也会报错的
MAX_DATA_SIZE 调大到100,但是上传30m附件也会报错的
As mentioned above, this is a limitation of StringBuilder. It has nothing to do with MAX_DATA_SIZE. Maybe you need to change the source code here and instead of using StringBuilder, read this.resp.result(i)
as a file stream
Issue description
Environment
Minimal test code / Steps to reproduce the issue
What's the actual result? (including assertion message & call stack if applicable)
What's the expected result?
看到 plugins/ext-plugin/init.lua 有个限制
调大这个MAX_DATA_SIZE限制,好像无效,继续报错,暂时无解