Communications Sequence with Upstream

agentzh agentzh at gmail.com
Wed May 5 06:11:32 MSD 2010


On Mon, Apr 26, 2010 at 7:43 PM, agentzh <agentzh at gmail.com> wrote:
>
> BTW, I looked over the related code in ngx_echo which was written 5
> months ago and found that it does not get r->main->count right for
> nginx 0.8.x >= 0.8.11. I'll rewrite the main dispatcher and the
> related parts for echo_location, echo_subrequest, and echo_sleep in
> the next day or two and make a new release.
>
> I apologize for not updating the ngx_echo codebase in time. People who
> have copied the current implementation of
> echo_subrequest/echo_location should update their code according to
> the next release of ngx_echo. I'm sorry :P
>

I've completed the Big Refactoring of the ngx_echo core in the git HEAD:

    http://github.com/agentzh/echo-nginx-module/

I think the new implementation of echo_location, echo_subrequest,
echo_sleep, and echo_read_request_body finally fit reasonably well
with the nginx event model as well as Igor's way of thinking :)

I'll make a new release (v0.29) to include this major update once
we've done more extensive testing.

This refactoring also paves a way to implementing the sequential
subrequest support in ngx_lua and "subrequests in subrequests" support
in ngx_srcache :)

If anybody experiences any regressions with the git HEAD of the
ngx_echo module, please let me know :)

Thanks!
-agentzh



More information about the nginx mailing list