Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

watchdog: fix timeout for early polling return #9410

Closed
wants to merge 1 commit into from
Closed

watchdog: fix timeout for early polling return #9410

wants to merge 1 commit into from

Conversation

mhdawson
Copy link
Member

Switch from running the loop with UV_RUN_ONCE to UV_RUN_DEFAULT, because
it's possible that the poll returns earlier than expected and thus the
timer is not run on a single interation.

The loop is not stopped either from the timer callback or from the async
handle's.

PR-URL: nodejs/node#622
Reviewed-By: Ben Noordhuis info@bnoordhuis.nl
Reviewed-By: Rod Vagg rod@vagg.org

Switch from running the loop with UV_RUN_ONCE to UV_RUN_DEFAULT, because
it's possible that the poll returns earlier than expected and thus the
timer is not run on a single interation.

The loop is not stopped either from the timer callback or from the async
handle's.

PR-URL: nodejs/node#622
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <rod@vagg.org>
@misterdjules
Copy link

LGTM.

@misterdjules
Copy link

Also, please add this to the appropriate milestone (as well as the appropriate issue). This will allow anybody else looking at the issues/PRs in that milestone to also find it an review it, and will communicate in which release we want this to be merged.

Currently we have two 0.12.x milestones, 0.12.1 and 0.12.2. If we want to integrate this fix asap and thus have people review it asap, let's add it to 0.12.1, otherwise let's add it to 0.12.2.

Even if it's merged quickly, sometimes it's handy to be able to look back to what had been done for a particular release on GitHub.

Thank you!

@mhdawson mhdawson added this to the 0.12.1 milestone Mar 16, 2015
mhdawson pushed a commit that referenced this pull request Mar 23, 2015
Switch from running the loop with UV_RUN_ONCE to UV_RUN_DEFAULT, because
it's possible that the poll returns earlier than expected and thus the
timer is not run on a single interation.

The loop is not stopped either from the timer callback or from the async
handle's.

Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
PR-URL: #9410
@mhdawson
Copy link
Member Author

Landed in 7e9d2f8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants