Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/internal/quic/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ class QuicSessionStats {
[kFinishClose]() {
const view = TypedArrayPrototypeSubarray(this.#handle,
this.#offset,
this.#offset + IDX_STATS_STREAM_COUNT);
this.#offset + IDX_STATS_SESSION_COUNT);
this.#handle = new BigUint64Array(view);
this.#offset = 0;
this.#disconnected = true;
Expand Down
2 changes: 2 additions & 0 deletions test/parallel/test-quic-session-stream-lifecycle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ clientSession.destroy();
strictEqual(clientSession.destroyed, true);
strictEqual(clientSession.endpoint, null);
strictEqual(clientSession.stats.isConnected, false);
strictEqual(typeof clientSession.stats.cwnd, 'bigint');
strictEqual(typeof clientSession.stats.streamsIdleTimedOut, 'bigint');

strictEqual(stream.destroyed, true);

Expand Down
Loading