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
Valery Kholodkov
November 29, 2011 05:32AM
----- agentzh <agentzh@gmail.com> wrote:
> On Mon, Nov 28, 2011 at 6:22 PM, Valery Kholodkov
> <valery+nginxen@grid.net.ru> wrote:
> >
> > I think we've been able to do that even before.
>
> Sadly for nginx 0.8.41 ~ 0.8.53, "IO interruptions" are explicitly
> prohibited in rewrite phase handlers and for exactly the same reason
> your ngx_eval module does not work at all for these versions of Nginx
> :)
>
> > But that's not point. The problem is not in what particular phase upload module will run, but that it must run whenever some module tries to read the request body. This kind of customisation is not supported by nginx yet.
> >
>
> True. We definitely need an input filter mechanism for Nginx. I've
> cc'd Andrew Alexeev. Maybe he can help make this happen in the Nginx
> core ;)
>
> >
> > Again, the point is not in what particular phase it will run... And by the way, the costs of internal redirects are negligible.
> >
>
> Not really if the user has a lot of regex style locations defined in
> his nginx.conf. For now, the nginx core does not (yet) utilize the
> PCRE JIT feature for its pattern matching, so it does consume quite a
> few CPU cycles for complicated location patterns ;) And...if we *can*
> eliminate the cost of internal redirects altogether, why shouldn't we
> make that happen? ;)

Did you mean "quite a lot"?

>
> Also, I believe it can simplify the user config file greatly and does
> not cause variable scope problems (like $uri and $args' scope). I know
> there is a upload_pass_args directive to forward the original URI
> query args, but if the $args scope issue does not exist in the first
> place, we do not need this config directive at all.
>
> BTW, I notice that if ngx_upload's special variables like
> $upload_file_md5 are used in a wrong context, it will simply crash the
> nginx worker (segmentation faults) due to null module context pointer
> access (at least for the latest 2.2.0 release).

I'll add a check for that.

> Maybe it's more
> reasonable to check the ctx pointer and print out a helpful error
> message in functions like ngx_http_upload_md5_variable?

--
Regards,
Valery Kholodkov

_______________________________________________
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: 150
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