-
Notifications
You must be signed in to change notification settings - Fork 69
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
bug: failed to get large body #114
Labels
bug
Something isn't working
Comments
I'll check it out later |
这里从conn读取数据的时候有可能没有读取完全,需要循环读取
|
This is read in a loop.
|
@zdzh Looks like it's buggy, would you be interested in submiting a PR to fix it? |
@spacewander Please assign to me. |
An-DJ
added a commit
to An-DJ/apisix-go-plugin-runner
that referenced
this issue
Dec 26, 2022
soulbird
pushed a commit
that referenced
this issue
Dec 27, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
我用request.Body来获取请求的body,但是当请求请求体过大时,该函数会提示获取失败,数据被截断。
Environment
v0.3.0
2.15.0
go version go1.15.1 linux/amd64
uname -a
):Linux fefcfe0549f3 4.18.0 #1 SMP Tue Sep 27 10:33:52 CST 2022 x86_64 x86_64 x86_64 GNU/Linux
Minimal test code / Steps to reproduce the issue
构造一个足够大的body,然后在go-runner中通过req.Body获取body
What's the actual result? (including assertion message & call stack if applicable)
传入的body首先提示存入一个临时文件,然后在调用req.Body时获取body失败,提示被截断。
觉得是存入临时文件的数据没有正确传递给go-runner,但是在ext-plugin/init.lua查看body的长度好像没问题
What's the expected result?
获取body成功
The text was updated successfully, but these errors were encountered: