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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -