Skip to content

fix(session cache): fix bug in tls session caching - #5882

Merged
mcollina merged 1 commit into
nodejs:mainfrom
jasnell:jasnell/fixup-tls-session-cache
Sep 24, 2026
Merged

mcollina merged 1 commit into
nodejs:mainfrom
jasnell:jasnell/fixup-tls-session-cache

Conversation

@jasnell

@jasnell jasnell commented Sep 24, 2026

Copy link
Copy Markdown
Member

This relates to...

tls session cache

Rationale

Spotted this one by accident. In the tls session cache, #5102 added logic to remove dead entries and make room, but the check used an early return that short circuited the cache operation.

Changes

Features

Bug Fixes

N/A

Breaking Changes and Deprecations

N/A

Status

Spotted this one by accident. In the tls session cache,
nodejs#5102 added logic
to remove dead entries and make room, but the check
used an early return that short circuited the cache
operation.

Signed-off-by: James M Snell <jasnell@gmail.com>
@jasnell
jasnell requested review from mcollina and trivikr September 24, 2026 05:04
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.91%. Comparing base (8145595) to head (33ac8d7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5882   +/-   ##
=======================================
  Coverage   93.90%   93.91%           
=======================================
  Files         110      110           
  Lines       39901    39907    +6     
=======================================
+ Hits        37470    37479    +9     
+ Misses       2431     2428    -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.

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants