mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
fix unlikely socket leak
This commit is contained in:
parent
2253064361
commit
1b982e1c00
@ -521,6 +521,7 @@ ngx_http_read_discarded_request_body_handler(ngx_http_request_t *r)
|
|||||||
/* rc == NGX_AGAIN */
|
/* rc == NGX_AGAIN */
|
||||||
|
|
||||||
if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {
|
if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {
|
||||||
|
c->error = 1;
|
||||||
ngx_http_finalize_request(r, rc);
|
ngx_http_finalize_request(r, rc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user