Welcome! Log In Create A New Profile

Advanced

Re: nginx-lua and nginx upload module

All files from this thread

File Name File Size   Posted by Date  
form_parser_module.lua 19.2 KB open | download Nginx User 11/26/2011 Read message
form_parser_module.lua 19.2 KB open | download Nginx User 11/26/2011 Read message
agentzh
November 28, 2011 04:52AM
On Mon, Nov 28, 2011 at 5:45 PM, Valery Kholodkov
<valery+nginxen@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
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx-lua and nginx upload module

strawman November 26, 2011 02:36AM

Re: nginx-lua and nginx upload module

agentzh November 26, 2011 03:10AM

Re: nginx-lua and nginx upload module Attachments

Nginx User November 26, 2011 04:18AM

Re: nginx-lua and nginx upload module

agentzh November 26, 2011 04:48AM

Re: nginx-lua and nginx upload module

Nginx User November 26, 2011 05:08AM

Re: nginx-lua and nginx upload module Attachments

Nginx User November 26, 2011 05:18AM

Re: nginx-lua and nginx upload module

strawman November 26, 2011 08:10AM

Re: nginx-lua and nginx upload module

agentzh November 26, 2011 08:18AM

Re: nginx-lua and nginx upload module

Nginx User November 26, 2011 08:26AM

Re: nginx-lua and nginx upload module

Valery Kholodkov November 26, 2011 03:16PM

Re: nginx-lua and nginx upload module

agentzh November 26, 2011 05:10PM

Re: nginx-lua and nginx upload module

Nginx User November 26, 2011 04:18PM

Re: nginx-lua and nginx upload module

Nginx User November 27, 2011 09:02AM

Re: nginx-lua and nginx upload module

Valery Kholodkov November 28, 2011 04:48AM

Re: nginx-lua and nginx upload module

agentzh November 28, 2011 04:52AM

Re: nginx-lua and nginx upload module

Valery Kholodkov November 28, 2011 05:24AM

Re: nginx-lua and nginx upload module

agentzh November 29, 2011 01:02AM

Re: nginx-lua and nginx upload module

Andrew Alexeev November 29, 2011 10:00AM

Re: nginx-lua and nginx upload module

Valery Kholodkov November 29, 2011 05:32AM

Re: nginx-lua and nginx upload module

agentzh November 29, 2011 05:52AM

Re: nginx-lua and nginx upload module

Valery Kholodkov November 29, 2011 10:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready