Skip to content

FileStream.BeginRead/Write with useAsync no longer use overlapped I/O #55172

Description

@stephentoub

On Windows when FileStream is opened for overlapped I/O, its BeginRead/Write methods would use overlapped I/O. Now in .NET 6 when no buffering is used, this is no longer the case: BeginRead/Write aren't overridden on the Windows strategy, and these operations end up using the base Stream implementation that queues work items (which will in turn block waiting on async I/O).

cc: @adamsitnik

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions