Commit fb09f30e authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

closing files befor delete and fix bug with conections in CLOSE_WAIT on Mac OS

parent 874079ea
...@@ -66,7 +66,7 @@ ngx_http_push_stream_publisher_handler(ngx_http_request_t *r) ...@@ -66,7 +66,7 @@ ngx_http_push_stream_publisher_handler(ngx_http_request_t *r)
return rc; return rc;
} }
return NGX_DONE; return NGX_OK;
} }
// GET only make sense with a previous existing channel // GET only make sense with a previous existing channel
...@@ -131,7 +131,7 @@ ngx_http_push_stream_publisher_body_handler(ngx_http_request_t *r) ...@@ -131,7 +131,7 @@ ngx_http_push_stream_publisher_body_handler(ngx_http_request_t *r)
return; return;
} }
buf->last = buf->last + len; buf->last = buf->last + len;
ngx_close_file(chain->buf->file->fd);
ngx_delete_file(chain->buf->file->name.data); ngx_delete_file(chain->buf->file->name.data);
chain->buf->file->fd = NGX_INVALID_FILE; chain->buf->file->fd = NGX_INVALID_FILE;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment