-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: 开发了一个插件,修改了server返回的流式响应的请求体,apisix一次响应不是一个chunk,而是累积几个chunk一起响应 #11977
Comments
|
@bzp2010 参考其他回答,增加了如下配置
可以解决问题,但是这个配置是全局的,有什么其他灵活的配置的方法么?比如nginx可以在location的位置配置。我的场景希望可以在对于处理header中含有"stream": true 请求,设置配置 proxy_buffering off;,可以帮忙看下apisix有办法配置吗?非常感谢 |
@GreatLazyMan |
about this issue, it maybe nginx side, look this nginx/nginx#316 |
Current Behavior
开发了一个插件,修改了server返回的流式响应的请求体,apisix一次响应不是一个chunk,而是累积几个chunk一起响应
已经尝试在route和nginx关闭cache,没有效果。示例代码
Expected Behavior
期望在修改响应体后,可以流式的返回响应体
Error Logs
No response
Steps to Reproduce
1.启动apisix和etcd
2.配置文件中配置自定义插件
3.启动测试服务器,可以返回流式响应
4.配置route和upstream
插件代码示例
Environment
apisix version
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: