Uh oh!
There was an error while loading. Please reload this page.
Merge several version of MsQuicStream SendAsync code - #68772
Conversation
ghost
commented
May 2, 2022
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFixes #55818. This PR extracts common code from several Send*Async methods
|
rzikm
commented
May 3, 2022
Test failures seem to be all some permission errors, no actual test failures as far as I can see |
rzikm
commented
May 3, 2022
/azp run runtime |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
I haven't looked much into this yet, but it feels like it might be better to wait for #68288 to go in to be able to reuse stuff like MsQuicBuffers that was added there?
There was a problem hiding this comment.
That PR does not use them for buffers inside MsQuicStream, and based on one of the comments it would be something for a follow-up PR. I probably don't mind much putting this on hold for a bit until that PR is merged, but that could take a while more.
Thoughts, @ManickaP?
There was a problem hiding this comment.
Yes, please wait with this on my PR.
rzikm
commented
May 3, 2022
Test failure is unrelated ( |
rzikm
commented
May 3, 2022
Putting this on hold until #68288 is in. |
rzikm
commented
May 5, 2022
I reused the |
rzikm
commented
May 6, 2022
fcf5b8c to
491ce39Comparerzikm
commented
May 12, 2022
/azp run runtime-libraries-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
rzikm
commented
May 13, 2022
Test failures are unrelated:
|
ManickaP
left a comment
There was a problem hiding this comment.
In general looks good, thanks.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| { | ||
| int count = buffers.Length; | ||
| Reserve(count); | ||
| _count = count; |
There was a problem hiding this comment.
Nit: I believe it is already part of Reserve(count)
| _count = count; |
| public State() | ||
| { | ||
| SendBuffers = new MsQuicBuffers(); |
There was a problem hiding this comment.
Any specific reason it should be in a constructor and not assigned on declaration as other fields?
There was a problem hiding this comment.
Putting = new MsQuicBuffers() in the field initializer triggers "Don't assign default values" or similar warning, and leaving it uninitialized breaks because the MsQuicBuffers._handles is null.
Fixes#55818.
This PR extracts common code from several
Send*Asyncmethods used to implementWriteAsyncinto a singleWriteAsyncInternalmethod.