Klaus Demo nginx / 36dfa02
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
14431443
14441444 if (in == NULL || stream->out_closed) {
14451445
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
14461452 if (stream->queued) {
14471453 fc->write->active = 1;
14481454 fc->write->ready = 0;