spacewander commented on issue #4905:
URL: https://github.com/apache/apisix/issues/4905#issuecomment-906857013
> but response-rewrite plugin will Interrupt request on the
body_filter_by_lua* first by called, The subsequent process will not be
requested
I just spend some time making an example:
```
server {
listen 127.0.0.1:2980;
location / {
content_by_lua_block {
ngx.say("AAA")
ngx.flush(true)
for i = 1, 3 do
ngx.sleep(1)
ngx.log(ngx.ERR, "I am still running")
ngx.say("AAA")
ngx.flush(true)
end
}
header_filter_by_lua_block {
ngx.header.content_length = nil
}
body_filter_by_lua_block {
ngx.log(ngx.ERR, "run body filter")
ngx.arg[1] = "BBB"
ngx.arg[2] = true
}
}
```
The request will keep processing (logging "I am still running") even the
output is already handled by the body_filter.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]