Skip to content

quic: Fix wake up blob#64044

Open
martenrichter wants to merge 1 commit into
nodejs:mainfrom
martenrichter:wakeupfix
Open

quic: Fix wake up blob#64044
martenrichter wants to merge 1 commit into
nodejs:mainfrom
martenrichter:wakeupfix

Conversation

@martenrichter

Copy link
Copy Markdown
Contributor

The quic implementation calls setWakeUp of Blob with the assumption that it is only executed once per event loop cycle.
This assumption is wrong.
Only setImmediate will guarantee that the
execution is delayed to later in the event loop
and happening once in the event loop.

Fixes: #64035

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jun 21, 2026
@martenrichter

Copy link
Copy Markdown
Contributor Author

@jasnell @pimterry : The issue came up in a call of createBlobReaderIterable.
For the second path, I am not sure if other changes may be more appropriate.

The quic implementation calls setWakeUp with
the assumption, that it is only executed once
per event loop cycle.
This assumption is wrong.
Only setImmediate will guarantee, that the
execution is delayed to later in the event loop
and happening once in the event loop.

Fixes: nodejs#64035
Signed-off-by: Marten Richter <marten.richter@freenet.de>
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

quic: Accumulation buffer is not filled, if small packets arrive

2 participants