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

Correct SetRequestTimeout code does to be more descriptive of what it's actually doing #2506

Closed
nickfloyd opened this issue Jul 21, 2022 · 2 comments · Fixed by #2520
Closed
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Documentation Improvements or additions to documentation

Comments

@nickfloyd
Copy link
Contributor

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 the Timeout 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).

@notauserx
Copy link
Contributor

notauserx commented Aug 3, 2022

I would like to work on this issue.

To reiterate, I would be updating the code docs from "Set the GitHub Api request timeout." to "Sets the timeout for the connection between the client and the server".

@nickfloyd
Copy link
Contributor Author

Thank you @notauserx for helping us make things better here 🎉

@nickfloyd nickfloyd added Type: Documentation Improvements or additions to documentation Status: Up for grabs Issues that are ready to be worked on by anyone and removed category: docs-and-samples labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants