-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[release/6.0] Fixes #62167. WriteAsync may truncate data if called after .Advance(int) #62348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Oh nyo... The CI fails, did I broke something ? |
No. Don't worry about it. A couple flaky Sockets tests timed out after 10 seconds, and System.Net.Sockets doesn't have a System.IO.Pipelines dependency. I'll rerun them. |
Oh ok then ! It looked like IO write related stuff so it was close :'). |
… called after an .Advance(int)
90dc2af
to
7acde97
Compare
I haven't gone through the 5.0/3.1 changes yet. I will soon, and I can help pushing the packaging changes there, so no worries about it 😄 |
Failures are unrelated. IO long running test was moved to outerloop on main: #60606 @jozkee can we port that to 6.0? @radical System.Text.Json failed when running AOT:
|
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1593860314 |
@jozkee an error occurred while backporting to release/6.0, please check the run log for details! Validation Failed: {"resource":"PullRequest","code":"custom","message":"No commits between release/6.0 and backport/pr-62348-to-release/6.0"} |
I didn't mean to backport this again, sorry. |
Backport of #62306 to release/6.0
/cc @BrennanConroy @Kuinox
Customer Impact
Customer reported issue. This can result in corrupted data (missing bytes in the middle of a Read) when using pipes with a mix of
GetSpan()
+Advance()
andWriteAsync()
Testing
New test was written for the scenario, current test coverage gives high confidence no regressions will occur.
Risk
Low. The fix is well understood and very little code change.