Skip to content

Avoid race condition in EventSource_UnsuccessfulRequest_LogsStartFailedStop #55913

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

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

MihaZupan
Copy link
Member

The test is looking at whether an HTTP/X.Y connection has been established. As we were cancelling the request right after the server established the connection (TCP), there is a race condition where the request may fail before constructing the logical HTTP/1.1 connection.

Changed the test to wait for the request line to be sent before cancelling the request.

Fixes #55906

@MihaZupan MihaZupan added this to the 6.0.0 milestone Jul 19, 2021
@ghost
Copy link

ghost commented Jul 19, 2021

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

The test is looking at whether an HTTP/X.Y connection has been established. As we were cancelling the request right after the server established the connection (TCP), there is a race condition where the request may fail before constructing the logical HTTP/1.1 connection.

Changed the test to wait for the request line to be sent before cancelling the request.

Fixes #55906

Author: MihaZupan
Assignees: -
Labels:

area-System.Net.Http

Milestone: 6.0.0

@MihaZupan MihaZupan merged commit b120764 into dotnet:main Jul 19, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure: EventSource_UnsuccessfulRequest_LogsStartFailedStop
2 participants