Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.h @ 6514:0aa07850922f
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Thu, 14 Apr 2016 15:14:15 +0300 |
parents | 9d66d7ed2abb |
children | ce94f07d5082 |
comparison
equal
deleted
inserted
replaced
6513:80ba811112ed | 6514:0aa07850922f |
---|---|
139 ngx_queue_t closed; | 139 ngx_queue_t closed; |
140 | 140 |
141 ngx_uint_t last_sid; | 141 ngx_uint_t last_sid; |
142 | 142 |
143 unsigned closed_nodes:8; | 143 unsigned closed_nodes:8; |
144 unsigned settings_ack:1; | |
144 unsigned blocked:1; | 145 unsigned blocked:1; |
145 }; | 146 }; |
146 | 147 |
147 | 148 |
148 struct ngx_http_v2_node_s { | 149 struct ngx_http_v2_node_s { |