Uh oh!
There was an error while loading. Please reload this page.
Timeout as TimeSpan, Support custom request timeout - #2078
Conversation
RomanSoloweow
commented
May 6, 2023
RomanSoloweow
commented
May 12, 2023
@alexeyzimarev ping |
1 similar comment
RomanSoloweow
commented
May 21, 2023
@alexeyzimarev ping |
alexeyzimarev
commented
May 23, 2023
I am not merging it because it will break things. Still thinking how to make it available with some transition. |
RomanSoloweow
commented
Jan 6, 2024
@alexeyzimarev any news? |
broke typical usage pattern |
alexeyzimarev
commented
May 25, 2024
I noticed that one and flagged it, but for some reason I didn't think that I will release a fix (the code is already fixed). I think |
KonnectSalon
commented
Jul 11, 2024
Why do you guys keep removing things and break all dependencies that use different versions. |

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.
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.