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

Timeout as TimeSpan, Support custom request timeout #2078

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

RomanSoloweow
Copy link
Contributor

@RomanSoloweow RomanSoloweow commented May 6, 2023

  1. I think the current approach to use int for timeout is outdated and it generates a lot of errors when you need to remember that these are milliseconds, and you need translate it. Even HttpClient has timeout as TimeSpan.

  2. The presence of "MaxTimeout" also confuses many users. If you want to set a custom timeout for the request, you need to remember which timeout is set for the rest client. Often, when you set a custom timeout for request, it's higher timeout than the default. These are requests for downloading and uploading files. It's rare case when the timeout is specially reduced for a particular request.

@RomanSoloweow
Copy link
Contributor Author

@alexeyzimarev

tests failed again. Pull request does not affect this.
image

@RomanSoloweow
Copy link
Contributor Author

@alexeyzimarev ping

1 similar comment
@RomanSoloweow
Copy link
Contributor Author

@alexeyzimarev ping

@alexeyzimarev
Copy link
Member

I am not merging it because it will break things. Still thinking how to make it available with some transition.

@RomanSoloweow
Copy link
Contributor Author

@alexeyzimarev any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants