• 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

[TODO] TimeOut

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

Post a reply
4 posts • Page 1 of 1

Postby DaveS » Sun Feb 19, 2006 4:39 pm

I am having problems with Timeouts... could you explain the deal here?

I have some users that enter the chatroom....and stay forever, even if they don't post anything....
and I have others that timeout after 22seconds (2+4*reply) even if they DO post something

Help?

Other than that my users LOVE this chatroom.... it has increased our chat activity 400% in just one day
R.David Sisemore
Webmaster
Brothers of the Third Wheel
www.btw-trikers.org
DaveS
Member
 
Posts: 12
Joined: Sat Feb 18, 2006 5:02 pm
Location: San Diego, CA USA
  • Website
Top

Postby phpfreechat » Sun Feb 19, 2006 5:55 pm

I must do something about that.
Currently, the timeout is hardcoded, you can't change it... I plan to do two things :
1. Add a "timeout" parameter to the $params array.
2. Add an algorithme which will adjust the timeout value for each users dynamicaly. Then a bad connection will have a bigger timeout and it will not be "virtually" disconnected too much.

I add this to the roadmap :)

Thanks for the report.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby DaveS » Sun Feb 19, 2006 6:15 pm

How is it "supposed" to work?

I would think a user would time out after like 5 or 10 minutes of non activity.... just to keep lurkers out....
R.David Sisemore
Webmaster
Brothers of the Third Wheel
www.btw-trikers.org
DaveS
Member
 
Posts: 12
Joined: Sat Feb 18, 2006 5:02 pm
Location: San Diego, CA USA
  • Website
Top

Postby phpfreechat » Sun Feb 19, 2006 6:30 pm

Currently :
1. a client login
2. each "timeout" delay, the client ask the server for update
3. the client close its chat windows
4. the server doesn't receive any update from this client
5. the first client will be disconnected (by timeout) if he doesn't send an update before the timeout hardcoded value

problem: the timeout harcoded value can be too small and a client which have a bad connection can ask for update but it can take a lot of time ! (more than timeout value)

Suggestion for future :
1. a client with a bad connection login
2. when the server receive the first update from this client, an algorithme verify if this delay is approximatly the same as the "refresh_delay" parameter. If it's longer, this algorithme will change the client timeout value.
3. the client close its chat windows
5. the client will be disconnected (by timeout) but this timeout can be trusted !

problem: with very very bad connections, this timeout could be very very long and when the user close his window, other connected people will not see the "disconnect (by timeout)" message until the timeout delay doesn't expire.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 11 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