shreemaan-abhishek commented on code in PR #11499:
URL: https://github.com/apache/apisix/pull/11499#discussion_r1743549919


##########
apisix/init.lua:
##########
@@ -722,10 +722,25 @@ function _M.http_access_phase()
         plugin.run_plugin("access", plugins, api_ctx)
     end
 
+    if ngx.ctx.disable_proxy_buffering then
+        stash_ngx_ctx()
+        return ngx.exec("@disable_proxy_buffering")
+    end
+
     _M.handle_upstream(api_ctx, route, enable_websocket)
 end
 
 
+function _M.disable_proxy_buffering_access_phase()
+    ngx.ctx = fetch_ctx()
+    local api_ctx = ngx.ctx.api_ctx
+    local plugins = plugin.filter(api_ctx, api_ctx.matched_route)
+
+    -- plugins to be run after proxy_buffering is disabled
+    plugin.run_plugin("delayed_access", plugins, api_ctx)

Review Comment:
   done



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