Skip to content

Conversation

@adamsitnik
Copy link
Member

We were not respecting IOV_MAX in pwritev and preadv exposed by RandomAccess. After writing test for it I've realized that the logic for handling the incomplete writes was also incomplete (please see the changes in managed layer).

fixes #108383 and adds a test for scenario described in #108322 , so I can backport #108380 to all supported versions.

Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
@adamsitnik
Copy link
Member Author

/ba-g the failures are known, the DeadLetter was not caused by my changes

@adamsitnik adamsitnik merged commit ee68c2c into dotnet:main Nov 8, 2024
152 of 159 checks passed
adamsitnik added a commit to adamsitnik/runtime that referenced this pull request Nov 8, 2024
* add test for Int32 overflow for WriteGather in RandomAccess * add failing test fore more than IOV_MAX buffers * fix both the native and managed parts --------- Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com> Co-authored-by: Stephen Toub <stoub@microsoft.com>
adamsitnik added a commit to adamsitnik/runtime that referenced this pull request Nov 8, 2024
* add test for Int32 overflow for WriteGather in RandomAccess * add failing test fore more than IOV_MAX buffers * fix both the native and managed parts --------- Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com> Co-authored-by: Stephen Toub <stoub@microsoft.com>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

5 participants