]> git.kaiwu.me - nginx.git/commit
HTTP/2: refuse streams with data until SETTINGS is acknowledged.
authorValentin Bartenev <vbart@nginx.com>
Thu, 14 Apr 2016 12:14:15 +0000 (15:14 +0300)
committerValentin Bartenev <vbart@nginx.com>
Thu, 14 Apr 2016 12:14:15 +0000 (15:14 +0300)
commit536b5510d1051281bd9411723102333e6d1dbdf2
treea3292229ad04618bdb63780f6960b25b580e3eb4
parent60f0960ab6cb35a6fffc57f32c311c93c28181af
HTTP/2: refuse streams with data until SETTINGS is acknowledged.

A client is allowed to send requests before receiving and acknowledging
the SETTINGS frame.  Such a client having a wrong idea about the stream's
could send the request body that nginx isn't ready to process.

The previous behavior was to send RST_STREAM with FLOW_CONTROL_ERROR in
such case, but it didn't allow retrying requests that have been rejected.
src/http/v2/ngx_http_v2.c
src/http/v2/ngx_http_v2.h