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

Remove unnecessary TcpListener initialization #4315

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Conversation

sebastienros
Copy link
Member

@sebastienros sebastienros commented Aug 19, 2023

It doesn't seem right to both start the TcpListener when we don't yet know that the system is healthy, and it's not using any connections limits. When the UpdateHealthStatusAsync method is called then it might not got call Start again, and even when it's called then the listener is active and the max pending connections value is not taken into account.

I was not able to create a unit test that would make it in a state where that it rejects connections since it's opening them in a fast paced while loop.

Microsoft Reviewers: Open in CodeFlow

@sebastienros sebastienros merged commit a387e38 into main Aug 21, 2023
@sebastienros sebastienros deleted the sebros/probes branch August 21, 2023 16:42
@ghost ghost added this to the 9.0-preview1 milestone Aug 21, 2023
@joperezr
Copy link
Member

/backport to release/8.0

@github-actions
Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/extensions/actions/runs/5930463907

@joperezr
Copy link
Member

/backport to release/8.0-rc1

@github-actions
Copy link
Contributor

Started backporting to release/8.0-rc1: https://github.com/dotnet/extensions/actions/runs/5930470373

@ghost ghost locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants