-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timers: fix refresh inside callback #26721
Closed
apapirovski
wants to merge
2
commits into
nodejs:master
from
apapirovski:fix-timers-refresh-in-callback
Closed
timers: fix refresh inside callback #26721
apapirovski
wants to merge
2
commits into
nodejs:master
from
apapirovski:fix-timers-refresh-in-callback
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodejs-github-bot
added
the
timers
Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
label
Mar 17, 2019
BridgeAR
approved these changes
Mar 17, 2019
richardlau
approved these changes
Mar 17, 2019
mscdex
reviewed
Mar 17, 2019
starkwang
approved these changes
Mar 18, 2019
3 tasks
antsmartian
approved these changes
Mar 18, 2019
antsmartian
added
the
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
label
Mar 18, 2019
Fishrock123
approved these changes
Mar 18, 2019
When `timers.refresh()` is called inside a callback, the timer would incorrectly end up unrefed and thus not keep the event loop alive.
apapirovski
force-pushed
the
fix-timers-refresh-in-callback
branch
from
March 19, 2019 05:42
239c9ae
to
a70719a
Compare
CI: https://ci.nodejs.org/job/node-test-pull-request/21655/ (had to rebase significantly) |
Landed in 4306300. |
danbev
pushed a commit
that referenced
this pull request
Mar 20, 2019
When `timers.refresh()` is called inside a callback, the timer would incorrectly end up unrefed and thus not keep the event loop alive. PR-URL: #26721 Fixes: #26642 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
targos
pushed a commit
that referenced
this pull request
Mar 27, 2019
When `timers.refresh()` is called inside a callback, the timer would incorrectly end up unrefed and thus not keep the event loop alive. PR-URL: #26721 Fixes: #26642 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
4 tasks
zero1five
added a commit
to zero1five/node
that referenced
this pull request
Jun 13, 2019
Add an or option for put refresh back to work. nodejs#26721 one reason it can't be overridden it only works in the callback of the current timer(before `finally`).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
timers
Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When
timers.refresh()
is called inside a callback, the timer would incorrectly end up unrefed and thus not keep the event loop alive.Fixes: #26642
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes