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

Close accept loop when closing connection #44885

Merged
merged 7 commits into from
Nov 26, 2020

Conversation

jkotalik
Copy link
Contributor

Found when working on dotnet/aspnetcore#26638 in the aspnetcore repo.

When closing the connection by a call to CloseAsync, it makes sense to force the accept loop to close. Other scenarios like Abort from client and Abort from transport already close the channel.

@ghost
Copy link

ghost commented Nov 18, 2020

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

Issue Details
Description:

Found when working on dotnet/aspnetcore#26638 in the aspnetcore repo.

When closing the connection by a call to CloseAsync, it makes sense to force the accept loop to close. Other scenarios like Abort from client and Abort from transport already close the channel.

Author: jkotalik
Assignees: -
Labels:

area-System.Net

Milestone: -

@jkotalik jkotalik force-pushed the jkotalik/CloseAcceptOnAbort branch from 3351d86 to f0fa27f Compare November 24, 2020 21:34
@jkotalik
Copy link
Contributor Author

Verified this works locally.

@jkotalik
Copy link
Contributor Author

There are other issues I'm hitting locally, but will investigate in another PR.

…ons/MsQuic/MsQuicListener.cs

Co-authored-by: Stephen Halter <[email protected]>
@jkotalik jkotalik merged commit 1503364 into dotnet:master Nov 26, 2020
@jkotalik jkotalik deleted the jkotalik/CloseAcceptOnAbort branch November 26, 2020 04:23
@ghost ghost locked as resolved and limited conversation to collaborators Dec 26, 2020
@karelz karelz added this to the 6.0.0 milestone Jan 26, 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.

4 participants