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

Fix sync ConnectHelper.Connect #39514

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

ManickaP
Copy link
Member

During synchronous creation of a new NetworkStream, the Socket.Connect passed successfully and then cancellation disposed the socket. Then NetworkStream ctor checked the socket state and thrown an IOException. This exception should have been handled the same way as exceptions from Connect and mapped to OperationCanceledException.

Fixes #39279

@ghost
Copy link

ghost commented Jul 17, 2020

Tagging subscribers to this area: @dotnet/ncl
Notify danmosemsft if you want to be subscribed.

@ManickaP ManickaP force-pushed the mapichov/39279_web_request_fix branch from ea27970 to 1d4d9d0 Compare July 18, 2020 10:28
Copy link
Member

@wfurt wfurt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ManickaP ManickaP merged commit 628d99b into dotnet:master Jul 20, 2020
@ManickaP ManickaP deleted the mapichov/39279_web_request_fix branch July 20, 2020 13:57
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
ManickaP added a commit to ManickaP/runtime that referenced this pull request Aug 15, 2020
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
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.

System.Net.Tests.HttpWebRequestTest_Async.Timeout_SetTenMillisecondsOnLoopback_ThrowsWebException fails in CI
4 participants