HTTP/2: return error on output on closed stream. Without this, an (incorrect) output on a closed stream could result in a socket leak.
Maxim Dounin
1 year, 6 months ago
1 changed file(s) with
6 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+6
-0
src/http/v2/ngx_http_v2_filter_module.c
less
more
1443
1443
1444
1444
if (in == NULL || stream->out_closed) {
1445
1445
1446
if (size) {
1447
ngx_log_error(NGX_LOG_ERR, fc->log, 0,
1448
"output on closed stream");
1449
return NGX_CHAIN_ERROR;
1450
}
1451
1446
1452
if (stream->queued) {
1447
1453
fc->write->active = 1;
1448
1454
fc->write->ready = 0;