0
votes

I want to set request timeout grater than default time in node js after creating server its working on local site but when it deployed its not working.Before all back-end execution it will send the error in response.My code like this

var express = require('express');

var app = express();

var http = require('http');

var server = http.createServer(app);

server.listen(port);

server.timeout = 900000;

1
Please read How to Ask and how to create minimal reproducible example.Yury Tarabanko

1 Answers

0
votes

Let's assume the logic in setTimeout will be running after every less than 30 minutes, so YES the heroku server will be still awake.

Will setTimeout use Heroku free dyno hours?