fs7744 opened a new issue, #8027:
URL: https://github.com/apache/apisix/issues/8027

   ### Current Behavior
   
   hi
   
   对此代码有点疑问  
https://github.com/apache/apisix/blob/master/apisix/core/response.lua#L177 
   如果最后一个 chunk 和 eof 一起,
   
   ``` lua
       if eof then
           body_buffer = ctx._body_buffer
           if not body_buffer then
               return chunk
           end
   
           body_buffer = concat_tab(body_buffer, "", 1, body_buffer.n)
           ctx._body_buffer = nil
           return body_buffer
       end
   ```
   
   这段不会丢失掉最后的 chunk 吗?
   
   难道apisix 在其他地方保证 eof 只会单独出现吗?
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   just see code
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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]

Reply via email to