Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: fix req cb / close cb invoke delay
Browse files Browse the repository at this point in the history
Finalization of closed handles and associated requests was sometimes delayed
until an external event (network I/O, timeout, etc.) happened. This commit
addresses that.
  • Loading branch information
bnoordhuis committed Jun 7, 2012
1 parent 9cb8bdc commit dea4594
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/core.c
Expand Up @@ -233,6 +233,9 @@ static unsigned int uv__poll_timeout(uv_loop_t* loop) {
if (!ngx_queue_empty(&loop->idle_handles))
return 0;

if (loop->closing_handles)
return 0;

return uv__next_timeout(loop);
}

Expand Down

0 comments on commit dea4594

Please sign in to comment.