Repository navigation
[HTTP/3] Fixed stress error System.Exception: Completed unexpectedly - #72734
Conversation
|
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFixed stress error: consistently happening for GET Aborted.
|
|
/azp list |
|
/azp run runtime-libraries stress-http |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| } | ||
| private unsafe int HandleEventPeerSendAborted(ref PEER_SEND_ABORTED data) | ||
| { | ||
| _receiveBuffers.SetFinal(); |
There was a problem hiding this comment.
Why this should not be set? I look at the ReceiveBuffers but it is not quite clear to me what this does.
There was a problem hiding this comment.
It successfully completes the buffer, propagation of FIN flag. You want to set it only in successful scenarios.
So what happened here is that we would set it here, ReadAsync would see this, i.e. that it's completed successfully and finish successfully the reading side of the stream, before the following exception could get propagated.
|
Failures unrelated, stress ran successfully. |
Fixed stress error:
consistently happening for GET Aborted.