Set max loop time to 28 sec. because of 30 sec. timeout of mod_proxy.
This commit is contained in:
parent
2111902015
commit
4b920bce15
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ class LongPollingController < ApplicationController
|
||||||
# check queue queue to send
|
# check queue queue to send
|
||||||
client_id = client_id_check
|
client_id = client_id_check
|
||||||
begin
|
begin
|
||||||
count = 28
|
|
||||||
|
# set max loop time to 28 sec. because of 30 sec. timeout of mod_proxy
|
||||||
|
count = 14
|
||||||
while true
|
while true
|
||||||
count = count - 1
|
count = count - 1
|
||||||
queue = Session.queue( client_id )
|
queue = Session.queue( client_id )
|
||||||
|
|
Loading…
Reference in a new issue