diff --git a/app/controllers/long_polling_controller.rb b/app/controllers/long_polling_controller.rb index d1c6d583b..111bf29cd 100644 --- a/app/controllers/long_polling_controller.rb +++ b/app/controllers/long_polling_controller.rb @@ -119,7 +119,10 @@ class LongPollingController < ApplicationController begin # update last ping - sleep 1 + 4.times {|loop| + sleep 0.25 + } + #sleep 1 Sessions.touch( client_id ) # set max loop time to 24 sec. because of 30 sec. timeout of mod_proxy @@ -132,7 +135,10 @@ class LongPollingController < ApplicationController render :json => queue return end - sleep 2 + 8.times {|loop| + sleep 0.25 + } + #sleep 2 if count == 0 render :json => { :action => 'pong' } return