mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
HTTP/2: fixed stream finalization.
In order to finalize stream the error flag is set on fake connection and either "write" or "read" event handler is called. The read events of fake connections are always ready, but it's not the case with the write events. When the ready flag isn't set, the error flag can be not checked in some cases and as a result stream isn't finalized. Now the ready flag is explicilty set on write events for proper finalization in all cases.
This commit is contained in:
parent
239e5ac063
commit
e825598266
@ -4266,7 +4266,10 @@ ngx_http_v2_finalize_connection(ngx_http_v2_connection_t *h2c,
|
||||
|
||||
if (stream->queued) {
|
||||
stream->queued = 0;
|
||||
|
||||
ev = fc->write;
|
||||
ev->active = 0;
|
||||
ev->ready = 1;
|
||||
|
||||
} else {
|
||||
ev = fc->read;
|
||||
|
Loading…
Reference in New Issue
Block a user