Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subsequent call to StreamShutdown(ABORT_RECEIVE) seems to overwrite the first passed error code #1821

Closed
CarnaViire opened this issue Jul 15, 2021 · 0 comments · Fixed by #1822
Labels
Area: API Bug: Core A code bug in the Core MsQuic code
Milestone

Comments

@CarnaViire
Copy link
Member

As per dotnet/runtime#55724 (comment) I found out that if I abort receive on the stream the second time, my error code might end up overwritten.

The test calls AbortRead(1234) on msquic stream and then the stream gets disposed, and that triggers AbortRead(0xffffffff) which we expected to be a no-op. The test expects peer to receive the first error code (1234). However, rarely the test can fail with peer receiving wrong (second) error code (0xffffffff=4294967295)

Assert.Equal() Failure
Expected: 1234
Actual:   4294967295
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: API Bug: Core A code bug in the Core MsQuic code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants