Skip to content

quic: async_iterator doesn't return the last chunk #35789

@mmomtchev

Description

@mmomtchev
  • Version: master with QUIC
  • Platform: Linux
  • Subsystem: stream

What steps will reproduce the bug?

node test/parallel/test-quic-simple-server-uni.js

How often does it reproduce? Is there a required condition?

QUIC must be enabled

Additional information

const chunk = stream.destroyed ? null : stream.read();

This line, committed 10 days ago, is the culprit, removing the stream.destroyed condition makes it work
This happens when the stream has been asynchronously closed by the time the last read call is made

Metadata

Metadata

Assignees

No one assigned

    Labels

    quicIssues and PRs related to the QUIC implementation / HTTP/3.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions