What is default timeout value of RestSharp RestClient?

HttpTimeoutRestsharpRest Client

Http Problem Overview


Anybody aware of default timeout value of RestSharp RestClient ?

Http Solutions


Solution 1 - Http

RestSharp is using HttpWebRequest under the hood, which has a default timeout of 100 seconds.

Solution 2 - Http

At least some versions of RestSharp (I'm looking at 106.6.10) will use an explicitly set Timeout value when using the async requests, but do not provide a default.

This is because:

> The Timeout property has no effect on asynchronous requests made with the BeginGetResponse or BeginGetRequestStream method.

(https://docs.microsoft.com/en-us/dotnet/api/system.net.httpwebrequest.timeout?view=netframework-4.8#remarks)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiontheGeeksterView Question on Stackoverflow
Solution 1 - HttpTodd MenierView Answer on Stackoverflow
Solution 2 - HttpstarwedView Answer on Stackoverflow