Skip to content

quic: preserve session stats after close#64489

Open
manNomi wants to merge 1 commit into
nodejs:mainfrom
manNomi:quic-preserve-session-stats-after-close
Open

quic: preserve session stats after close#64489
manNomi wants to merge 1 commit into
nodejs:mainfrom
manNomi:quic-preserve-session-stats-after-close

Conversation

@manNomi

@manNomi manNomi commented Jul 14, 2026

Copy link
Copy Markdown

Description

QuicSessionStats[kFinishClose]() used IDX_STATS_STREAM_COUNT when
snapshotting session statistics. Since stream stats contain fewer entries
than session stats, fields beginning with cwnd were omitted after a session
was destroyed and returned undefined.

Use IDX_STATS_SESSION_COUNT so the complete session stats slice is copied
before the native session releases its arena slot. Add regression assertions
for the first previously omitted field (cwnd) and the final session field
(streamsIdleTimedOut).

Signed-off-by: manNomi <hanmw110@naver.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3. labels Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants