-
Notifications
You must be signed in to change notification settings - Fork 1.6k
SocketsHttpHandler - update documentation #4290
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
SocketsHttpHandler - update documentation #4290
Conversation
Co-authored-by: Maira Wenzel <mairaw@microsoft.com>
…otnet-api-docs into jajahoda/SocketsHttpHandler
Co-authored-by: Karel Zikmund <karelz@microsoft.com> Co-authored-by: Maira Wenzel <mairaw@microsoft.com>
…otnet-api-docs into jajahoda/SocketsHttpHandler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
## Remarks | ||
This property define maximal connection lifetime in the pool regardles the connection is idle or active. The connection should be reestablished periodically to reflect the DNS TTL. There is no link between actuall DNS TTL and this property and the property shoul be set manually. | ||
|
||
If the connection endpoint is not the Doamin name but the IP address, the value can be <xref:System.Threading.Timeout.InfiniteTimeSpan>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this based on the code? Or is this just hint? The DNS refresh matters only if server is on dynamic IP IMHO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is just a hint. Please correct me there.
I was about more static setup where the server can change its IP because infra changes and DNS reflect this change after TTL.
Any suggestion (change/ truncate the sentence) is appreciate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just say something like
This property defines maximal connection lifetime in the connectioon pool regardles the connection is idle or active. The connection will be reestablished periodically to reflect the DNS or other network changes.
and I would probably remove the part about IP address. I think it is up to the caller to decide if refresh make sense for them or not.
Co-authored-by: Maira Wenzel <mairaw@microsoft.com>
Summary
Collect all changes from #3916 related to ReadOnlyMemoryContent