-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
area-System.Net.QuicenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additions
Milestone
Description
Description
When we open a unidirectional stream and attempt to read from it, we get different exceptions for different read operations. ReadByte throws InvalidOperationException. CopyTo throws NotSupportedException.
Reproduction Steps
var outgoingStream = await connection.OpenOutboundStreamAsync(QuicStreamType.Unidirectional);
outgoingStream.ReadByte(); // throws InvalidOperationException
outgoingStream.CopyTo(new MemoryStream()); // throws NotSupportedExceptionExpected behavior
Both operations should throw the same exception.
Actual behavior
The operations throw different exceptions.
Regression?
Known Workarounds
Configuration
Not relevant.
Other information
No response
wfurt
Metadata
Metadata
Assignees
Labels
area-System.Net.QuicenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additions