Welcome! Log In Create A New Profile

Advanced

Re: How do proxy_module response buffering options work?

Hongli Lai
April 25, 2011 08:16AM
Maxim Dounin wrote in post #994792:
> No, nginx passes downstream chain of buffers, not a single buffer.

I understand this, but I don't understand how there can be more than 1
buffer at a time that's only partially passed downstream. I had in mind
that it works like this:

Suppose that Nginx is configured with 4 buffers, each 100 bytes in size.
The upstream response is 400 bytes.
Bytes 0-99 from the response are put in buffer 1, bytes 100-199 are put
in buffer 2, bytes 200-299 are put in buffer 3, bytes 300-399 are put in
buffer 4.
Nginx flushes buffer 1 downstream, thus buffer 1 is now a "busy buffer"
while all the other ones are not. Only when buffer 1 is entirely flushed
will Nginx continue to flush buffer number 2 (buffer 1 is now marked
"ready" of some sort so that it may be reused.)

How can there be multiple busy buffers? Is my description correct?

--
Posted via http://www.ruby-forum.com/.

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

How do proxy_module response buffering options work?

Hongli Lai April 24, 2011 10:50AM

Re: How do proxy_module response buffering options work?

Maxim Dounin April 24, 2011 05:24PM

Re: How do proxy_module response buffering options work?

Hongli Lai April 24, 2011 06:08PM

Re: How do proxy_module response buffering options work?

Maxim Dounin April 24, 2011 06:16PM

Re: How do proxy_module response buffering options work?

Hongli Lai April 25, 2011 08:16AM

Re: How do proxy_module response buffering options work?

Maxim Dounin April 25, 2011 02:54PM

Re: How do proxy_module response buffering options work?

liuzhida November 17, 2011 09:52PM

Re: How do proxy_module response buffering options work?

Maxim Dounin November 18, 2011 09:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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