set keep-alive timeout

This commit is contained in:
Ivan Socolsky 2016-08-09 10:05:25 -03:00
parent 7a77805b29
commit b70b3cd726
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 5 additions and 0 deletions

5
bws.js
View File

@ -43,6 +43,11 @@ var start = function(cb) {
function doStart(cb) {
var server = config.https ? serverModule.createServer(serverOpts, expressApp.app) : serverModule.Server(expressApp.app);
server.on('connection', function(socket) {
socket.setTimeout(30 * 1000);
})
async.parallel([
function(done) {