Hello!
On Thu, Feb 13, 2014 at 12:00 PM, ming zhang wrote:
> In Tengine(http://tengine.taobao.org/), one nice feature is to have this
> proxy_request_buffering option that could skip all local temp file traffic.
>
> Wonder is there any particular reason we do not include it in openresty?
>
Because this is a big patch to the Nginx core and we're trying hard
not to fork the Nginx core to prevent conflicts with the mainstream in
the future.
BTW, if you're using ngx_lua, you can already do strict non-buffered
proxying (for both big requests and big responses) in pure Lua with
the cosocket API and ngx.print/ngx.flush:
https://github.com/chaoslawful/lua-nginx-module#ngxreqsocket
https://github.com/chaoslawful/lua-nginx-module#ngxsockettcp
https://github.com/chaoslawful/lua-nginx-module#ngxprint
https://github.com/chaoslawful/lua-nginx-module#ngxflush
James Hurst's 3rd-party lua-resty-http library can also make this work
much easier:
https://github.com/pintsized/lua-resty-http
Regards,
-agentzh