Welcome! Log In Create A New Profile

Advanced

Re: BIG requests/responses to POST and post_handler return value

agentzh
February 22, 2011 10:34PM
On Tue, Feb 22, 2011 at 9:51 PM, Antoine BONAVITA
<antoine_bonavita@yahoo.com> wrote:
> Got it. Why the same pattern was not used for the body handler ? Using one
> pattern for request handler and another for body handler is definitely
> misleading and wannabe module developers like me are likely to fall in this
> trap.
>

Well, just to mind you, the rewrite handler, access handler, and body
handler all use its own convention of return values and they're
different in one way or another ;)

Besides, the specific meaning may change without notice because Igor
Sysoev tends to change his mind :)

If you'd call such things "traps", then I'd say there's tons of them
in the core.

Reading request bodies can be more complicated in a rewrite/access
phase handler (as compared to the content handler in your example)
because the protocol there is even more complicated.

> I definitely will. The tricky part is that those problems appear only in very
> specific situations (big BODY in and out). Honestly, I ran into this bug almost
> "by luck".
>

No, you definitely do not have to do things by luck because you do
have access to the complete source code. When in doubt, go reading the
source.

If you do rely on luck while developing nginx modules, then I'd bet
that you'll quickly go out of luck and it's very likely you have
broken things on your side already :)

Relying on mail list mails or blog posts is not recommended either,
because there's so many important details that could be easily missed
intentionally or unintentionally in such media.

Cheers,
-agentzh

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

BIG requests/responses to POST and post_handler return value

Antoine BONAVITA 2194 February 22, 2011 04:36AM

Re: BIG requests/responses to POST and post_handler return value

Maxim Dounin 971 February 22, 2011 06:16AM

Re: BIG requests/responses to POST and post_handler return value

Antoine BONAVITA 1098 February 22, 2011 08:52AM

Re: BIG requests/responses to POST and post_handler return value

agentzh 921 February 22, 2011 10:34PM

Re: BIG requests/responses to POST and post_handler return value

Antoine BONAVITA 870 February 23, 2011 12:04PM

Re: BIG requests/responses to POST and post_handler return value

agentzh 1579 February 27, 2011 11:06PM

Re: BIG requests/responses to POST and post_handler return value

Antoine BONAVITA 1112 February 28, 2011 04:26PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 229
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