Reduce timeout, so disconnected peer will be kicked earlier

master
Daniel Berteaud 11 years ago
parent 80968c2dd9
commit dd17af3190
  1. 3
      signalmaster/server.js

@ -49,6 +49,9 @@ function checkRoom(room,token,user) {
} }
io.configure(function(){ io.configure(function(){
io.set('close timeout', 20);
io.set('heartbeat timeout', 10);
io.set('heartbeat interval', 5);
io.set('authorization', function(data, accept){ io.set('authorization', function(data, accept){
if(data.headers.cookie){ if(data.headers.cookie){
data.cookie = cookie_reader.parse(data.headers.cookie); data.cookie = cookie_reader.parse(data.headers.cookie);

Loading…
Cancel
Save