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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -