Correct SetRequestTimeout code does to be more descriptive of what it's actually doing #2506
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Documentation
Improvements or additions to documentation
A few spots in the code exist where
SetRequestTimeout
is used and documented.The timeout specified in the connection itself is only for the client connecting to the server. All this does is pass through the value you pass into
System.Net.Http.HttpClient
and assigns it to theTimeout
property - which just sets the timespan to wait before the request itself times out.We need to correct the code docs for this API on the GitHubClient object. The code comments ("Set the GitHub Api request timeout.") implies that this will set the timeout for the GitHub API itself (which is capped at 10 seconds) and not the client timeout to the API.
This documentation should better represent what calling this method does - it sets the timeout for the connection between the client and server and does not assign the timeout of the GitHub REST API (it's a client connection timeout and not a deadline propagation).
The text was updated successfully, but these errors were encountered: