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:
parent
80968c2dd9
commit
dd17af3190
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user