• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Timout issue

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Timout issue

Postby Syntax29 » Wed Oct 17, 2012 3:41 pm

Hi everyone,

I'm experiencing a problem with the timeout configuration of the chat. I want that an user would be disconnected if he doesn't write anything in the chat during 1 hour.
So, I configured the parameters loke this :

$params["timeout"] = 10000;
$params["refresh_delay_steps"] = array(2000,3600000,15000);

So, after 1 hour of inactivity, the refresh delay up to 15sec, so the timeout is triggered and the user is disconneted. Fair enough.
If the user write something during this hour, it reset the refresh_delay_step. Fair enough.
But, if an other user write somethnig in the chat, it will appear on my user chat as well, and reset the refresh_delay_step... I don't want this to happen.

Is there any solution to avoid other user activty to reset my refresh_delay_step?

Any help will be welcomed.

Thx.
Syntax29
New member
 
Posts: 1
Joined: Wed Oct 17, 2012 3:30 pm
Top

Re: Timout issue

Postby itchibahn » Sat Dec 01, 2012 6:23 am

According to the global config file

Code: Select all
  /**
   * <p>This parameter is used to control the refresh_delay value dynamically.
   * More the chat is active, more the refresh_delay is low, that means more the chat is responsive.
   * The first parameter is a refresh delay value, the second is a time inactivity boundary etc ...
   * (Default value: array(2000,20000,3000,60000 ... that means: start with 2s delay after 20s of inactivity,
   *  3s delay after 60s of inactivity ...)</p>
   */
  var $refresh_delay_steps = array(2000,20000,3000,30000,5000,60000,8000,300000,15000,600000,30000);


Is it possible that missing 4th item in array causing your problem?

I'm testing with

Code: Select all
$params["refresh_delay_steps"] = array(2000,300000,15000,420000,3600000,600000);
.
.
.
-------------------------------------------------------------------------------
Currently working on NorJah
My failed websites: PC Share ISOT MultiByte
itchibahn
Member
 
Posts: 12
Joined: Sun Mar 16, 2008 6:33 pm
  • Website
Top

Re: Timout issue

Postby Prognatus » Sat Jan 26, 2013 8:40 pm

I see now that the global config array, as posted by itchibahn, is missing a parameter.

var $refresh_delay_steps =
array(2000,20000,3000,30000,5000,60000,8000,300000,15000,600000,30000,nnnnnn);

(my enhancement of the missing parameter)

So, my question is then: what happens when the user is idle for 30 seconds (sixth instance)? The result is not given! It can be anything ... depending on how the system interprets a missing constant.
Prognatus
New member
 
Posts: 4
Joined: Fri Jan 25, 2013 4:03 pm
Location: Oppland, Norway
  • Website
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 95 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub