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 — fix: keep idle validation on global timers by mcollina · Pull Request #5407 · nodejs/undici

Conversation

@mcollina

@mcollina mcollina commented Jun 9, 2026

Copy link
Copy Markdown
Member

Summary

  • restore idle socket validation to use the normal global timer APIs instead of bypassing fake timers through node:timers
  • update cache interceptor tests to fake only Date, which is the only clock behavior they need to control
  • keep the poisoned idle socket test synchronization from fix: keep idle validation on native timers #5397

Tests

  • node --test test/interceptors/cache.js
  • node --test test/response-queue-poisoning.js test/issue-810.js
  • npm run lint -- --quiet

Sorry, something went wrong.

Uh oh!

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

All reactions
@mcollina
fix: keep idle validation on global timers
9290322
Signed-off-by: Matteo Collina <[email protected]>
@codecov-commenter

codecov-commenter commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.24%. Comparing base (b4c287b) to head (9290322).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5407      +/-   ##
==========================================
- Coverage   93.25%   93.24%   -0.01%     
==========================================
  Files         110      110              
  Lines       36826    36825       -1     
==========================================
- Hits        34341    34337       -4     
- Misses       2485     2488       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

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

trivikr
trivikr approved these changes Jun 10, 2026
View reviewed changes
@mcollina mcollina mentioned this pull request Jun 10, 2026
fix: keep idle validation on global timers #5409
Merged
@mcollina
mcollina merged commit ac5394b into nodejs:main Jun 10, 2026
65 of 67 checks passed

Uh oh!

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

@github-actions github-actions Bot mentioned this pull request Jun 15, 2026
[Release] v8.5.0 #5429
Merged
@carlotestor carlotestor mentioned this pull request Jul 2, 2026
Idle-socket validation adds ~1.3ms to every keep-alive request reuse (setTimeout(0) in scheduleIdleSocketValidation) #5493
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@trivikr trivikr trivikr approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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.

3 participants

@mcollina @codecov-commenter @trivikr
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.