Increase a http get request connection Timeout in Angular2 http module -


i use angular2 on client side , node in backend. trying keep https connection open until timesout in 4 hours.

in backend tried, calling still timesout @ default 2 minutes

request.timeout(1000 * 60 * 60 * 4, function(){})

since use angular2 http module. tried using timeout method in http request follows, timesout @ default of 2 minutes:

return this.http.get(this.url, {search : params, withcredentials: true}) .map(res => res.json()) .timeout(1000 * 60 * 60 * 4) .catch(this.handleerror);

any other suggestions increase https request connection default 2 minutes 4 hours


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -