timeout the process quickly

This commit is contained in:
Will Bradley 2018-09-01 16:25:42 -07:00
parent 229f79e837
commit fcd9545890
No known key found for this signature in database
GPG Key ID: 42BAE225DDDB7093

View File

@ -39,4 +39,5 @@ app.get('/logs', require('./routes/logs'))
app.get('/update', require('./routes/update'))
app.get('/', (req, res) => res.render('home', {}))
app.listen(PORT, () => console.log('Example app listening on port 3000!'))
var server = app.listen(PORT, () => console.log('Doorlock app listening at http://localhost:3000 !'))
server.timeout = 10000 // 10 sec is super long for our requests