Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

SmtpConnection: fix Socket not getting Disposed when LingerState cannot be set. #42664

Closed
wants to merge 1 commit into from

Conversation

tmds
Copy link
Member

@tmds tmds commented Nov 21, 2019

@davidsh davidsh added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Nov 21, 2019
@davidsh
Copy link
Contributor

davidsh commented Nov 21, 2019

We're currently not accepting any PRs on this corefx repo. We'll be publishing the new dotnet/runtime repo in the next several days.

{
_tcpClient.LingerState = new LingerOption(true, 0);
}
catch
Copy link
Member

Choose a reason for hiding this comment

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

Can we catch the exact problematic exception type?

Copy link
Member Author

Choose a reason for hiding this comment

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

The dump indicates that we don't get past this line.
But we don't know what exact exception gets thrown.

@tmds
Copy link
Member Author

tmds commented Dec 2, 2019

Replaced by dotnet/runtime#428.

@tmds tmds closed this Dec 2, 2019
@karelz karelz added this to the 5.0 milestone Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants