comparison src/http/v2/ngx_http_v2.h @ 6495:92464ebace8e

HTTP/2: sending RST_STREAM with NO_ERROR to discard request body. RFC 7540 states that "A server can send a complete response prior to the client sending an entire request if the response does not depend on any portion of the request that has not been sent and received. When this is true, a server MAY request that the client abort transmission of a request without error by sending a RST_STREAM with an error code of NO_ERROR after sending a complete response (i.e., a frame with the END_STREAM flag)." This should prevent a client from blocking on the stream window, since it isn't maintained for closed streams. Currently, quite big initial stream windows are used, so such blocking is very unlikly, but that will be changed in the further patches.
author Valentin Bartenev <vbart@nginx.com>
date Fri, 01 Apr 2016 15:56:03 +0300
parents 8ec349bb60b2
children 887cca40ba6a
comparison
equal deleted inserted replaced
6494:5805301f990f 6495:92464ebace8e
192 unsigned handled:1; 192 unsigned handled:1;
193 unsigned blocked:1; 193 unsigned blocked:1;
194 unsigned exhausted:1; 194 unsigned exhausted:1;
195 unsigned in_closed:1; 195 unsigned in_closed:1;
196 unsigned out_closed:1; 196 unsigned out_closed:1;
197 unsigned rst_sent:1;
197 unsigned skip_data:2; 198 unsigned skip_data:2;
198 }; 199 };
199 200
200 201
201 struct ngx_http_v2_out_frame_s { 202 struct ngx_http_v2_out_frame_s {