Repository navigation
HTTP/3 Reenabled cookie tests - #56831
Conversation
|
Tagging subscribers to this area: @dotnet/ncl |
ignore Mock for now...? |
|
I re-disabled the mock version. I created a new issue for that and this PR will close the original multi-issue. |
e7dcc1c to
54860df
Compare
|
Error code 267 is H3_REQUEST_REJECTED, which is coming from the loopback server. What happens here is that the cookie test is issuing an H3 request that will result in a redirect. The redirect handling logic then issues a second request for the redirect. Meanwhile, the server logic here is sending the first response and then closing the connection gracefully (i.e., sending GOAWAY and then waiting for the client to close the connection). As part of the graceful shutdown logic, it rejects any new requests with H3_REQUEST_REJECTED, which indicates to the client that it should retry the request on a new connection. So there's an inherent race here. It should be handled by the client checking for H3_REQUEST_REJECTED and retrying the request on a new connection. We have this sort of logic for HTTP2, but it seems we either aren't doing this for HTTP3 or are not doing it properly. I suspect that that this is not a Mock-specific issue; it's just timing related (and thus probably happens more in CI, unfortunately). |
5f3fcc3 to
7faf34c
Compare
I added handling similar to what we have in H/2. However, if I ran the test in a tight loop, I still saw failures at around iteration 600, failing the MaxRetry limit: I don't know if there's something that can be done about it. Are we somehow too slow to close the connection? Should we do some blocking/waiting there? |
|
So I disable only those cookie tests that were using more than 1 server-side connection. And I disabled them only for H/3 --> in an if with |
|
Failures are unrelated. |
It was dependent on #55025 which has been fixed, so I'm just re-enabling the tests.
I ran locally more than 100 loops of HTTP tests without any problems.
Fixes #53093