-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 SocketsHttpConnectionFactory #40075
Comments
Tagging subscribers to this area: @dotnet/ncl |
This seems like a good thing. But I don't understand this part:
|
We currently have this code: Lines 19 to 29 in 7acaf16
It exposes a property using an internal type that |
Yeah, that makes sense, thanks. That seems like it ends up in a better place anyway. |
@antonfirsov I believe you're already working on this |
SocketsHttpConnectionFactory
was proposed as part of #1793.Its original intent was to provide a number of callbacks for users to customize things without understanding all of the
ConnectionFactory
stuff. However, API review removed all of these callbacks, making this class largely redundant withSocketsConnectionFactory
.The only remaining features it has are:
HttpRequestMessage
out of the property bag for the user.We should consider reducing our API surface by doing the following:
SocketsHttpConnectionFactory
.SocketsConnectionFactory
to default its sockets with Nagle off.Socket
behavior. But, it may be okay to be opinionated here, and most experts end up turning it off anyway.DnsEndPointWithProperties
type to expose anHttpRequestMessage
property.Old usage example:
New usage example:
CC @geoffkizer @karelz this came about from a discussion with @stephentoub. I feel we can treat this as low priority, but it is a low-effort way to improve API surface.
The text was updated successfully, but these errors were encountered: