GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — timer: call list.start regardless new or not by abbr · Pull Request #2788 · nodejs/node

Conversation

@abbr

@abbr abbr commented Sep 10, 2015

Copy link
Copy Markdown

Call start regardless whether list is new
or not to prevent incorrect active_handles
count.

Fixes nodejs/node-v0.x-archive#25831.
Ported from pr nodejs/node-v0.x-archive#25832.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@abbr
timer: call list.start regardless new or not
8597b1b
Call start regardless whether list is new
or not to prevent incorrect active_handles
count.

Fixes nodejs/node-v0.x-archive#25831.
@brendanashworth brendanashworth added the timers Issues and PRs related to timers, setImmediate(), setInterval(), and setTimeout(). label Sep 10, 2015
@abbr abbr mentioned this pull request Sep 10, 2015
timer: call list.start regardless new or not nodejs/node-v0.x-archive#25832
Closed
thefourtheye
thefourtheye reviewed Sep 10, 2015
View reviewed changes
Comment thread test/simple/test-timers-active-handles.js

@thefourtheye thefourtheye Sep 10, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use strict should be the first line.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thefourtheye

thefourtheye commented Sep 10, 2015

Copy link
Copy Markdown
Contributor

The simple directory under test directory is specific to the old repository. Here you need to put this either in parallel or sequential directory.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mscdex

mscdex commented Sep 10, 2015

Copy link
Copy Markdown
Contributor

Is it possible to create a test that doesn't have to compile C++ code (while tests are running)? Maybe utilize process._getActiveHandles() to check the active handle count?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@abbr

abbr commented Sep 10, 2015

Copy link
Copy Markdown
Author

@mscdex, the c++ code is used to expose uv_run to js, not for reporting active handles.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkurchatkin

vkurchatkin commented Sep 10, 2015

Copy link
Copy Markdown
Contributor

Why do you need uv_run to test incorrect active handles count?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fishrock123

Fishrock123 commented Sep 10, 2015

Copy link
Copy Markdown
Contributor

Please move the tests into test/parallel/ :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@abbr

abbr commented Sep 12, 2015

Copy link
Copy Markdown
Author

Just realized pr should be applied to master branch. I will close this pr and submit a new one.

@mscdex, in my updated test case of the new pr, I found process._getActiveHandles().length is reporting wrong # of count: 3, as opposed to c++ uv_default_loop()->active_handles of 0 which is used in the test case. Possibly another bug.

@vkurchatkin , uv_run is not used to test incorrect handles. It's how the problem occurs. Just nesting two setTimeout calls with same value won't cause the problem.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@abbr abbr closed this Sep 12, 2015
@abbr abbr mentioned this pull request Sep 12, 2015
timer: call list.start regardless new or not #2830
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

timers Issues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@abbr @thefourtheye @mscdex @vkurchatkin @Fishrock123 @brendanashworth
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.