From f38149e82338a55a3127556f231d0e40034e7b9d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 13 Jan 2015 17:03:58 +0100 Subject: [PATCH] Improved comments. --- script/websocket-server.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/websocket-server.rb b/script/websocket-server.rb index 7d784c31d..749261950 100755 --- a/script/websocket-server.rb +++ b/script/websocket-server.rb @@ -295,7 +295,7 @@ EventMachine.run { idle_time_in_min = 4 - # web sockets + # close unused web socket sessions @clients.each { |client_id, client| if ( client[:last_ping] + ( 60 * idle_time_in_min ) ) < Time.now log 'notice', "closing idle websocket connection", client_id @@ -312,10 +312,10 @@ EventMachine.run { end } - # close unused sessions + # close unused ajax long polling sessions clients = Sessions.destory_idle_sessions(idle_time_in_min) clients.each { |client_id| - log 'notice', "closing idle connection", client_id + log 'notice', "closing idle long polling connection", client_id } end @@ -327,4 +327,4 @@ EventMachine.run { # puts "#{Time.now}:#{ level }:client(#{ client_id }) #{ data }" end -} +} \ No newline at end of file