In my Angular 2+ / ASP.NET Core MVC WebAPI application I have a long running API-call from the client UI to the server. The request times out after 30 seconds. I would like to define the timeout for this specific API call either client- or server-side.
I have only found ways to configure the server timeout globally, which is not what I want, as the 30 second timeout is fine for other calls. I've also found solutions to decrease the timeout client side by piping RxJS's timeout
operator. However, as I understand, this is not suitable for increasing the timeout?
How can I set the timeout on this specific request? Where does the 30 second default come from?
(The code doesn't actually matter, as it is a standard API controller and a standard Angular HTTP call):
this.http.get('api/xyz').subscribe(d => { ... });