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

Unable to enable TCP KeepAlive in System.Net.HttpClient #31267

Closed
jhudsoncedaron opened this issue Oct 23, 2019 · 3 comments
Closed

Unable to enable TCP KeepAlive in System.Net.HttpClient #31267

jhudsoncedaron opened this issue Oct 23, 2019 · 3 comments
Milestone

Comments

@jhudsoncedaron
Copy link

Unable to enable TCP KeepAlive in System.Net.HttpClient. It is off by default, doesn't have its own option to turn it on, and the generic API that did this in Framework does nothing.

https://github.com/dotnet/corefx/blob/a62579502cb9e86b761c2249d0d04af3d827b3a3/src/System.Net.ServicePoint/src/System/Net/ServicePointManager.cs#L214

We are currently discussing what ridiculously overweight thing to do about this.

@stephentoub
Copy link
Member

The plan to address this is to expose one or more delegates/interfaces to let you configure the socket employed by SocketsHttpHandler or to replace the stream entirely. That's tracked by https://github.com/dotnet/corefx/issues/35404.
cc: @scalablecory

@karelz
Copy link
Member

karelz commented Jan 7, 2020

Duplicate of #28721

@scalablecory
Copy link
Contributor

This has been resolved via the API added here in .NET 5: #41949

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

No branches or pull requests

5 participants