Question on pre-read under 'ngx_http_read_client_request_body'

Valentin V. Bartenev vbart at nginx.com
Fri Jan 17 11:38:34 UTC 2014


On Friday 17 January 2014 13:57:12 Pravin Tatti wrote:
> I am beginner to nginx and trying to understand it can any one help to
> understand the below query:
> 
> In ngx_http_read_client_request_body() there is a pre-read part of the
> request body this is basically used to populate the request->body with body
> filters right? why we are not doing the same in case of spdy any specific
> reason.

This "pre-read part" is just a part of body that accidentally was read into
headers_in buffer, because in http the size of request header is unknown.

It's not the case in spdy, where headers and body comes in different frames
with known length.

  wbr, Valentin V. Bartenev



More information about the nginx-devel mailing list