mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
fix socket leak introduced in r1374 when request header and body was
in one packet and connection went to keep-alive state
This commit is contained in:
parent
140c7556a2
commit
2253064361
1 changed files with 2 additions and 2 deletions
|
|
@ -446,8 +446,6 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
|
|||
return NGX_OK;
|
||||
}
|
||||
|
||||
r->discard_body = 1;
|
||||
|
||||
size = r->header_in->last - r->header_in->pos;
|
||||
|
||||
if (size) {
|
||||
|
|
@ -461,6 +459,8 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
|
|||
}
|
||||
}
|
||||
|
||||
r->discard_body = 1;
|
||||
|
||||
r->read_event_handler = ngx_http_read_discarded_request_body_handler;
|
||||
|
||||
if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue