2 | | In case ngx_write_chain_to_file has been called by `ngx_event_pipe` which returns NGX_ABORT for failing `ngx_write_file`(in this case, `ngx_event_pipe` is only called from ngx_http_upstream, all of them returns `ngx_http_upstream_finalize_request(r, u, NGX_ERROR);` ), I considered that it should be closed the file stream to prevent from resource leaks. |
| 2 | In case `ngx_write_chain_to_file` has been called by `ngx_event_pipe` which returns NGX_ABORT for failing `ngx_write_file`(in this case, `ngx_event_pipe` is only called from ngx_http_upstream, all of them return `ngx_http_upstream_finalize_request(r, u, NGX_ERROR);` ), I considered that it should be closed the file stream to prevent from resource leaks. |