• 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

how to deactivate refresh_delay_steps

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

Post a reply
8 posts • Page 1 of 1

Postby colladude » Wed Sep 17, 2008 1:55 pm

Greetings,

It looks like my previous problem of timeout is due to the default refresh_delay_steps

What is the _complete_ default value of the refresh_delay_steps

..
refresh_delay_steps
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 ...)
..

How do I deactivate this refresh_delay_steps..

Even if there is user activity. I want the user not to be timed out unless user logsout by closing browser window !

Is the following sufficient?

$params["refresh_delay_steps"] = array(2000, 20000, 3000, 60000);

Cheers, Kishore.
colladude
Member
 
Posts: 10
Joined: Wed Sep 10, 2008 2:12 am
Location: Singapore
  • Website
Top

Postby colladude » Wed Sep 17, 2008 2:42 pm

The fundamental question - If users will logon to a channel and only will check if there are messages... What should be the setting so that no timeout occurs! Messages may not be created for hours max 9 hours :-)
colladude
Member
 
Posts: 10
Joined: Wed Sep 10, 2008 2:12 am
Location: Singapore
  • Website
Top

Postby OldWolf » Thu Sep 18, 2008 12:45 am

You can't "deactivate" it, that simply doesn't make sense.

In layman's terms, the point of it is to set how often the chat is refreshed for new data (so if someone has sent something, it will show up on the next refresh). If you don't refresh, no one's messages will be displayed to anyone, and the chat will no longer be a chat.

If timeouts are occurring too quickly for you, you should try increasing the timeout parameter first. This makes more sense that changing the refresh delays. Make sure you do not increase the timeout to be too high; if the user closes the browser, their name will remain for that length of time.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby colladude » Thu Sep 18, 2008 1:00 am

What I meant by deactivate is the _dynamic_ part of the refresh. When a user is not active... I just want a refresh_delay of 5 seconds... I do not want any increase of this number
colladude
Member
 
Posts: 10
Joined: Wed Sep 10, 2008 2:12 am
Location: Singapore
  • Website
Top

Postby OldWolf » Thu Sep 18, 2008 5:26 am

Have you tried array(5000, 0)?
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby colladude » Thu Sep 18, 2008 6:54 am

A setting of array(5000, 0) or array(5000, 1000) starting making the number next to ping become NaNs in a few sec and the ping started refreshing super-fast ---> This would become performance issue !

Am keeping the timeout to a large number

Please provide other suggestions..
colladude
Member
 
Posts: 10
Joined: Wed Sep 10, 2008 2:12 am
Location: Singapore
  • Website
Top

Postby colladude » Thu Sep 18, 2008 7:12 am

What is the _complete_ default value of the refresh_delay_steps? If I get this setting... I can extend this further !
colladude
Member
 
Posts: 10
Joined: Wed Sep 10, 2008 2:12 am
Location: Singapore
  • Website
Top

Postby phpfreechat » Fri Sep 19, 2008 10:50 am

You have to look into pfc/src/pfcglobalconfig.class.php its complete default value is setup here.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
8 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 24 guests

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