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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 06453a94a7b0
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 6eb4d1d15ca8
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Mar 4, 2014

  1. timer: don't reschedule timer bucket in a domain

    If two timers run on the same tick, and the first timer uses a domain,
    and then catches an exception and disposes of the domain, then the
    second timer never runs. (And even if the first timer does not dispose
    of the domain, the second timer could run under the wrong domain.)
    
    This happens because timer.js uses "process.nextTick()" to schedule
    continued processing of the timers for that tick. However, there was
    an exception inside a domain, then "process.nextTick()" runs under
    the domain of the first timer function, and will do nothing if
    the domain has been disposed.
    
    To avoid this, we temporarily save the value of "process.domain"
    before calling nextTick so that it does not run inside any domain.
    Greg Brail authored and tjfontaine committed Mar 4, 2014
    Copy the full SHA
    6eb4d1d View commit details
    Browse the repository at this point in the history