Category Archives: WebAPI

RestSharp timeout

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

Ref: https://stackoverflow.com/questions/28829524/what-is-default-timeout-value-of-restsharp-restclient

This is a bit surprise because in other web API, e.g. ASP.NET, 0 timeout means max or no timeout, which is not the case for RestSharp, or HttpWebRequest

Advertisements