1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-28 17:53:42 +02:00

Reduce timeout, so disconnected peer will be kicked earlier

This commit is contained in:
Daniel Berteaud 2014-06-18 18:04:38 +02:00
parent 80968c2dd9
commit dd17af3190

View File

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