source code analysis

agentzh agentzh at
Thu Dec 30 07:26:30 MSK 2010

On Thu, Dec 30, 2010 at 12:17 PM, Michael Schurter
<michael.schurter at> wrote:
> Unfortunately as long as the check that I remove in the initial patch
> exists I don't think a 3rd party module is going to be able to change
> nginx's existing behavior of responding with a 411 Length Required.

It takes advantage of the "error_page" mechanism in the nginx core,
which is kinda like a try-catch exception mechanism.

To be honest, ngx_chunkin uses lots of hacks to avoid patching the
nginx core and in retrospect, I think it was not a right decision. It
is my 3rd module after all. It could be much more general and much
simpler and much more efficient if it were provided in the form of a
(small) patch :) I may rewrite that module sometime in the future.


More information about the nginx-devel mailing list