From 4b920bce15f582502cacc5424f97e2b2baaa77be Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 10 Mar 2013 17:44:40 +0100 Subject: [PATCH] Set max loop time to 28 sec. because of 30 sec. timeout of mod_proxy. --- app/controllers/long_polling_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/long_polling_controller.rb b/app/controllers/long_polling_controller.rb index 1d7b589a0..86acbc17d 100644 --- a/app/controllers/long_polling_controller.rb +++ b/app/controllers/long_polling_controller.rb @@ -73,7 +73,9 @@ class LongPollingController < ApplicationController # check queue queue to send client_id = client_id_check begin - count = 28 + + # set max loop time to 28 sec. because of 30 sec. timeout of mod_proxy + count = 14 while true count = count - 1 queue = Session.queue( client_id )