Repository navigation
HTTP2: Fix handling of RST_STREAM with error = NO_ERROR after response EndStream - #39882
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
|
Made some nontrivial changes to address the issues above. @stephentoub can you review again? |
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
|
@karelz as stated above, we need this fix for 3.0 |
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
I'm fine with that (as 'virtual' karelz while he's OOF). After this gets merged, please prepare a release/3.0 PR with template etc. |
|
@stephentoub I added a comment; can I get your approval here? |
|
This PR is in master, hence 5.0. The tracking issue should be 3.0 which will require another PR for 3.0 later. Makes sense? |
|
@karelz thanks for the explanation. |
|
|
||
| if (signalWaiter) | ||
| { | ||
| _waitSource.SetResult(true); |
There was a problem hiding this comment.
Why don't we want to do this in the _requestBodyAbandoned == true case?
There was a problem hiding this comment.
Because we haven't cancelled the response body in that case. It's the cancellation of the response body that requires us to signal the waiter.
…re not holding the stream object lock when we don't expect to
…onsAsynchronously
a4706de to
5db7c7c
Compare
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
|
@stephentoub I refactored to avoid the code duplication. If you have a chance, take one more look. |
|
Also added a fix for #40030. |
|
Ran stress on this for 10 minutes, no errors. Will continue running. |
|
@dotnet/dnceng I'm not seeing a link to test failures in the build logs anymore. Am I missing something here? I go here https://dev.azure.com/dnceng/public/_build/results?buildId=295529 and click on the red stuff under Send to Helix, and there used to be a link to test failures here, but now I don't see it. |
|
Stress ran for an hour with no failures. |
You have to scroll the window horizontally a lot to see the link. See: Here are the failures for Outerloop Linux: Here are the failures for Outerloop OSX: |
|
Thanks @davidsh. Though you used to actually see the test failures listed in a table, not just raw console output. Is that no longer available? @dotnet/dnceng |
|
Failures are unrelated |
|
@geoffkizer this is because with the new version of the Helix Job API runs which were shown on Mission Control (meant to be deprecated for Azure DevOps) now (by design) don't have specific metadata they would need to be viewed on mc.dot.net. I agree that we definitely need to improve the logging layout of these error log links, but you should be able to answer any question you were able to previously with mc.dot.net with Azure Devops & thes logs; if you find this is not the case please ping me and we'll work on it. |
|
@MattGal So basically, the old tabular view is dead and there's no plan to replace it? And test failures are to be discovered by groveling console output from the test runs? |
|
@davidsh Thanks, didn't know that existed. |
|
@geoffkizer yes I was getting similar screen shots for you: ... all show the stuff from those console logs. In general everything you should have gotten from the old system we're trying to get to Azure Dev Ops, and if there's something you're missing do let us know! |
…e EndStream (dotnet#39882) * fix handling of RST_STREAM with error = NO_ERROR after response EndStream * eat exception and ensure we don't cancel the response body * add comment * add CancelResponseBody to avoid code duplication, and add checks we are not holding the stream object lock when we don't expect to * fix _expect100ContinueWaiter to use TaskCreationOptions.RunContinuationsAsynchronously
…e EndStream (#39882) (#40112) * fix handling of RST_STREAM with error = NO_ERROR after response EndStream * eat exception and ensure we don't cancel the response body * add comment * add CancelResponseBody to avoid code duplication, and add checks we are not holding the stream object lock when we don't expect to * fix _expect100ContinueWaiter to use TaskCreationOptions.RunContinuationsAsynchronously
…e EndStream (dotnet/corefx#39882) * fix handling of RST_STREAM with error = NO_ERROR after response EndStream * eat exception and ensure we don't cancel the response body * add comment * add CancelResponseBody to avoid code duplication, and add checks we are not holding the stream object lock when we don't expect to * fix _expect100ContinueWaiter to use TaskCreationOptions.RunContinuationsAsynchronously Commit migrated from dotnet/corefx@ca6c44b




Fixes #39586
Fixes #40030
The RFC defines special behavior for receiving a RST_STREAM with error = NO_ERROR after the response body stream has been completed. When this happens, a client is supposed to cancel sending the request body but still consider the request successful. Previously, we did not do this.
@danmosemsft This impacts GRPC scenarios and will need to be ported to the 3.0 branch.