You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HTTP3] Loopback server WaitForCancellationAsync logic is wrong #58234
All we are doing here is reading to the end of the read stream.
What we should be doing is validating that the client cancels the request, by aborting read and write with H3_REQUEST_CANCELLED. For reference, see the HTTP2 loopback implementation, which is waiting to receive a RST_STREAM.
Perhaps ironically, we need to implement #58229 in order to do be able to do this.
This means that any test that uses WaitForCancellationAsync is not actually validating cancellation properly. For better or worse, most of our cancellation tests don't actually use WaitForCancellationAsync anyway -- though they probably should. I will file a separate issue on that.
The biggest impact of this is the test IncompleteResponseStream_ResponseDropped_CancelsRequestToServer.
This is intended to test response finalization. Right now, though, it's not working correctly because WaitForCancellationAsync is just returning immediately.
Added "disabled-test" label to track re-enabling the IncompleteResponseStream_ResponseDropped_CancelsRequestToServer test, which will be disabled as part of #58088
changed the title [-]HTTP3: Loopback server WaitForCancellationAsync logic is wrong[/-][+][HTTP3] Loopback server WaitForCancellationAsync logic is wrong[/+]on Aug 31, 2021
While I can fix WaitForCancellationAsync now, the only HTTP/3 test that uses it (IncompleteResponseStream_ResponseDropped_CancelsRequestToServer) still would not work because of #60141
ghost added
in-prThere is an active PR which will close this issue when it is merged
Activity
geoffkizer commentedon Aug 27, 2021
The biggest impact of this is the test IncompleteResponseStream_ResponseDropped_CancelsRequestToServer.
This is intended to test response finalization. Right now, though, it's not working correctly because WaitForCancellationAsync is just returning immediately.
geoffkizer commentedon Aug 27, 2021
Added "disabled-test" label to track re-enabling the IncompleteResponseStream_ResponseDropped_CancelsRequestToServer test, which will be disabled as part of #58088
[-]HTTP3: Loopback server WaitForCancellationAsync logic is wrong[/-][+][HTTP3] Loopback server WaitForCancellationAsync logic is wrong[/+]CarnaViire commentedon Oct 7, 2021
While I can fix
WaitForCancellationAsyncnow, the only HTTP/3 test that uses it (IncompleteResponseStream_ResponseDropped_CancelsRequestToServer) still would not work because of #60141Fix HTTP/3 loopback server WaitForCancellationAsync and aborting on f…