Welcome! Log In Create A New Profile

Advanced

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

agentzh
May 10, 2010 11:14PM
On Tue, May 11, 2010 at 4:12 AM, peterjanovsky <nginx-forum@nginx.us> wrote:
> can't wait to get into the source.  i've been snooping around the echo
> module source to familiarize myself with subrequests as it provides great
> examples.

Yay!

>  question, is it possible to determine a content-length when you utilize
> subrequests or will that prohibit chunking?

Yes, it's possible :)

you can inspect all your subrequest's response bufs in your own output
filter and accumulate the overall buf size (i.e., the total length of
your subrequest's response) along the way (but not buffer the bufs
themselves).

It will not prohibit chunking as long as you don't want to send a
Content-Length header before sending the response bufs.

Cheers,
-agentzh

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

[ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

agentzh May 05, 2010 05:20AM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

Sergey A. Osokin May 05, 2010 05:38AM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

agentzh May 05, 2010 05:54AM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

agentzh May 06, 2010 07:52AM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

Matthieu Tourne May 06, 2010 02:06PM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

agentzh May 06, 2010 09:58PM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

Matthieu Tourne May 07, 2010 12:46PM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

agentzh May 09, 2010 11:46PM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

Matthieu Tourne May 10, 2010 03:16PM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

peterjanovsky May 10, 2010 04:12PM

Re: [ANNOUNCE] ngx_echo v0.29: major core refactoring and more robust sequential subrequests

agentzh May 10, 2010 11:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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