mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 22:56:59 +08:00
fix socket leak introduced in r2378
This commit is contained in:
parent
60190068ab
commit
3b74b8eeb9
@ -2098,6 +2098,11 @@ ngx_http_writer(ngx_http_request_t *r)
|
|||||||
"http writer output filter: %d, \"%V?%V\"",
|
"http writer output filter: %d, \"%V?%V\"",
|
||||||
rc, &r->uri, &r->args);
|
rc, &r->uri, &r->args);
|
||||||
|
|
||||||
|
if (rc == NGX_ERROR) {
|
||||||
|
ngx_http_finalize_request(r, rc);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (r->buffered || r->postponed || (r == r->main && c->buffered)) {
|
if (r->buffered || r->postponed || (r == r->main && c->buffered)) {
|
||||||
|
|
||||||
if (!wev->ready && !wev->delayed) {
|
if (!wev->ready && !wev->delayed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user