Skip to content

QuicStream.ReadsClosed completes before EOS is consumed #79818

@bentoi

Description

@bentoi

This is related to the discussion on #77216 .

It looks like today QuicStream.ReadsClosed gets completed as soon as the last piece of data is returned by QuicStream.ReadAsync and before QuicStream.ReadAsync returns 0 to indicate the end of the stream.

This is demonstrated by the test case attached. What are the excepted semantics for ReadsClosed?

Should it complete:

  1. as soon as EOS is received and even if there's buffered data
  2. when EOS is received and after the buffered data is consumed
  3. when EOS is received and after the buffered data and EOS are consumed.

quicstreameos.zip

Metadata

Metadata

Assignees

Labels

area-System.Net.QuicquestionAnswer questions and provide assistance, not an issue with source code or documentation.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions