| From | Sent On | Attachments |
|---|---|---|
| strawman | Nov 25, 2011 11:35 pm | |
| agentzh | Nov 26, 2011 12:07 am | |
| Nginx User | Nov 26, 2011 1:16 am | .lua |
| agentzh | Nov 26, 2011 1:45 am | |
| Nginx User | Nov 26, 2011 2:06 am | |
| Nginx User | Nov 26, 2011 2:16 am | .lua |
| strawman | Nov 26, 2011 5:10 am | |
| agentzh | Nov 26, 2011 5:15 am | |
| Nginx User | Nov 26, 2011 5:24 am | |
| Valery Kholodkov | Nov 26, 2011 12:13 pm | |
| Nginx User | Nov 26, 2011 1:16 pm | |
| agentzh | Nov 26, 2011 2:08 pm | |
| Nginx User | Nov 27, 2011 6:01 am | |
| Valery Kholodkov | Nov 28, 2011 1:45 am | |
| agentzh | Nov 28, 2011 1:51 am | |
| Valery Kholodkov | Nov 28, 2011 2:21 am | |
| agentzh | Nov 28, 2011 10:00 pm | |
| Valery Kholodkov | Nov 29, 2011 2:29 am | |
| agentzh | Nov 29, 2011 2:49 am | |
| Andrew Alexeev | Nov 29, 2011 6:58 am | |
| Valery Kholodkov | Nov 29, 2011 7:50 am |
| Subject: | Re: nginx-lua and nginx upload module | |
|---|---|---|
| From: | agentzh (agen...@gmail.com) | |
| Date: | Nov 28, 2011 1:51:04 am | |
| List: | ru.sysoev.nginx | |
On Mon, Nov 28, 2011 at 5:45 PM, Valery Kholodkov <valery+ngin...@grid.net.ru> wrote:
Happily we no longer have such limitations for nginx 0.8.54+ :)
Explain?
Now we can happily read and process the request body in both rewrite and access phase handlers in nginx 0.8.54+. And ngx_lua is already doing that for both the lua_need_request_body config directive and the "ngx.req.read_body()" Lua API.
Great! Just a quick example from my head:
location /upload { upload_in_access_phase; proxy_pass http://backend; }
That is, no longer introducing an internal location here for internal redirections ;)
Doesn't look like API. We are talking about being able to use accelerated
uploads feature from lua, aren't we?
No, I think we're talking about making ngx_upload easier to work with other nginx modules, especially with those registering a content handler like ngx_lua, ngx_echo, ngx_proxy, and ngx_fastcgi.
The whole point here is to make ngx_upload read and process the request body in an earlier phase like "rewrite" and "access" phases, such that we can preserve the content handler for other modules and can eliminate internal redirects altogether to reduce runtime cost.
Sorry for the confusions in my previous emails :)
Thanks! -agentzh
_______________________________________________ nginx mailing list ngi...@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx






.lua