]> git.kaiwu.me - nginx.git/commit
HTTP/2: sending RST_STREAM with NO_ERROR to discard request body.
authorValentin Bartenev <vbart@nginx.com>
Fri, 1 Apr 2016 12:56:03 +0000 (15:56 +0300)
committerValentin Bartenev <vbart@nginx.com>
Fri, 1 Apr 2016 12:56:03 +0000 (15:56 +0300)
commitcedba685a1eb18ca960b2eab3fafdc2afdbd624a
tree6a121230ce1687dcb871a5fbfcd2f274652e3a47
parent7cee215f15cf91e40fe5709485e60655292e2c67
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.
src/http/v2/ngx_http_v2.c
src/http/v2/ngx_http_v2.h