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

Async open improvements for NetTcp #4832

Merged
merged 3 commits into from
Jun 22, 2022
Merged

Conversation

mconnew
Copy link
Member

@mconnew mconnew commented May 23, 2022

These changes reduce how often we need to go async when opening a TCP channel. If connecting to localhost, there's no need to do any DNS lookup. Also changes the entire socket connection stage to use our SynchronizationContext which dispatches task continuations to an IO thread on Windows, and a manually created background thread on Linux/Mac. This prevents thread pool starvation from preventing forward progress on a TCP channel open.

Also removed net5.0 as test target and added net7.0. This required modifying of global.json to add net6.0 as a restored SDK as dotnet maestro updated it to use .net 7.0 preview so we were no longer installing .net6.0 SDK.

…anging SspiSecurityTokenProvider to avoid this when GetTokenAsync is called
@mconnew
Copy link
Member Author

mconnew commented Jun 15, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mconnew
Copy link
Member Author

mconnew commented Jun 16, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mconnew
Copy link
Member Author

mconnew commented Jun 16, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mconnew
Copy link
Member Author

mconnew commented Jun 17, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mconnew
Copy link
Member Author

mconnew commented Jun 17, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mconnew
Copy link
Member Author

mconnew commented Jun 22, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mconnew mconnew merged commit 595af3c into dotnet:main Jun 22, 2022
@mconnew mconnew deleted the AsyncNetTcpOpen branch June 22, 2022 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants