set keep-alive timeout
This commit is contained in:
parent
7a77805b29
commit
b70b3cd726
5
bws.js
5
bws.js
|
@ -43,6 +43,11 @@ var start = function(cb) {
|
||||||
|
|
||||||
function doStart(cb) {
|
function doStart(cb) {
|
||||||
var server = config.https ? serverModule.createServer(serverOpts, expressApp.app) : serverModule.Server(expressApp.app);
|
var server = config.https ? serverModule.createServer(serverOpts, expressApp.app) : serverModule.Server(expressApp.app);
|
||||||
|
|
||||||
|
server.on('connection', function(socket) {
|
||||||
|
socket.setTimeout(30 * 1000);
|
||||||
|
})
|
||||||
|
|
||||||
async.parallel([
|
async.parallel([
|
||||||
|
|
||||||
function(done) {
|
function(done) {
|
||||||
|
|
Loading…
Reference in New Issue