• 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

getting weird \"timeout\" message...help???!!!

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

Post a reply
61 posts • Page 2 of 5 • 1, 2, 3, 4, 5

Postby Nelfo » Thu Mar 27, 2008 5:12 pm

Alright, this is all the information I can give you. It seems to give the error after 10-20 seconds. Below are two logins, I typed as much as I could before it crapped out:

Code: Select all
10:05:50 * admin joins Lobby
27/03/2008 10:05:59 ‹admin› hello
27/03/2008 10:06:03 ‹admin› I am back
27/03/2008 10:06:06 ‹admin› on my site
27/03/2008 10:06:10 ‹admin› checking for errors
27/03/2008 10:07:03 * admin joins Lobby
27/03/2008 10:07:09 ‹admin› hi there
27/03/2008 10:07:12 ‹admin› me again
27/03/2008 10:07:19 ‹admin› using a different browser
27/03/2008 10:07:22 ‹admin› no errors so far

Here is how I'm pulling in the chat (it's an iframe so the the prototype you are using doesn't collide with my mootools.. error happens whether I hit the iframe page directly or not):

Code: Select all
require_once "../chat/src/phpfreechat.class.php"; // adjust to your own path

$params["serverid"] = md5(__FILE__);
$params["refresh_delay"] = 2000; // 2000ms = 2s
$nick = $logged_in ? $user['username'] : "Guest";
$nick = $user['ID'] == 1 ? "admin" : $nick;
$params['isadmin'] = $user['ID'] == 1 ? true : false;
$params["nick"] = $nick; // it can be useful to take nicks from a database
$params['frozen_nick'] = true;
$params["channels"] = array('Lobby');
$params['skip_proxies'] = array('log');
$chat = new phpFreeChat($params);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
   <title>Untitled</title>
   <meta name="generator" content="BBEdit 8.2" />
</head>
<body>
<?
   $chat->printJavascript();
   $chat->printStyle();
   $chat->printChat();
?>
</body>
</html>
Nelfo
Member
 
Posts: 17
Joined: Tue Feb 12, 2008 8:51 am
Top

Postby Nelfo » Thu Mar 27, 2008 5:21 pm

Please let me know if there is any server information you would find useful.
Nelfo
Member
 
Posts: 17
Joined: Tue Feb 12, 2008 8:51 am
Top

Postby Nelfo » Thu Mar 27, 2008 6:00 pm

So I just had a look at this bug report:

http://sourceforge.net/tracker/index.php?func=detail&aid=1831667&group_id=158880&atid=809601

....and sure enough when I comment out this line in my above code:

Code: Select all
$params["nick"] = $nick;

The problem goes away. Kerphi?
Nelfo
Member
 
Posts: 17
Joined: Tue Feb 12, 2008 8:51 am
Top

Postby j0sh » Thu Mar 27, 2008 6:19 pm

kerphi wrote:Thank you for all these details. As I cannot reproduce the bug myself, currently I cannot investigate, but please don't stop your reports.

i can reproduce the error simply join to chat from 2 different browser (firefox 2.0.0.13 & ie7) contemporary
example:
Code: Select all
27/03/2008 18:17:23 * guest24 quit (timeout)
27/03/2008 18:17:31 * guest644 quit (timeout)
27/03/2008 18:17:46 * guest24 quit (timeout)
27/03/2008 18:17:54 * guest644 quit (timeout)
27/03/2008 18:18:08 * guest24 quit (timeout)
27/03/2008 18:18:16 * guest644 quit (timeout)
27/03/2008 18:18:31 * guest24 quit (timeout)
27/03/2008 18:18:39 * guest644 quit (timeout)
27/03/2008 18:18:54 * guest24 quit (timeout)
27/03/2008 18:19:01 * guest644 quit (timeout)
27/03/2008 18:19:24 * guest644 quit (timeout)

when i use only one browser can chat normally but a lot of users are kicked out using only one browser... probably there are problems with the sessions check?
Last edited by j0sh on Thu Mar 27, 2008 6:20 pm, edited 1 time in total.
j0sh
Member
 
Posts: 12
Joined: Wed Mar 26, 2008 11:35 am
Top

Postby Nelfo » Thu Mar 27, 2008 6:30 pm

It looks to me like we have two separate problems. I'm not getting the "quit (timeout)"
Nelfo
Member
 
Posts: 17
Joined: Tue Feb 12, 2008 8:51 am
Top

Postby stepvut » Thu Mar 27, 2008 6:33 pm

please post your browser name/version and answer: work or not
i can repeat this bug on official demo in explorer only
stepvut
New member
 
Posts: 9
Joined: Mon Jan 28, 2008 9:31 am
Top

Postby Nelfo » Thu Mar 27, 2008 6:35 pm

Nelfo wrote:http://sourceforge.net/tracker/index.php?func=detail&aid=1831667&group_id=158880&atid=809601

In my case it's not a browser issue
Nelfo
Member
 
Posts: 17
Joined: Tue Feb 12, 2008 8:51 am
Top

Postby shini » Fri Mar 28, 2008 9:17 am

In my opinion, this bug could be related to either performance or connection speed; I suppose this because in the phpfreechat I installed, some users can talk in the chat a whole day without any problems, whereas some users gets kicked systematicaly after 20 or 30 seconds...

And the people having problems are always the same!
shini
Member
 
Posts: 35
Joined: Wed Mar 05, 2008 2:10 pm
Top

Postby zeep » Fri Mar 28, 2008 9:52 am

I also experience this bug. In my opinion the timeout mechanism is much too aggressive.

Taking a look at pfcglobalconfig:
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);

  /**
   * <p>This is the time of inactivity to wait before considering a user is disconnected (in milliseconds).
   * A user is inactive only if s/he closed his/her chat window. A user with an open chat window
   * is not inactive because s/he sends each <code>refresh_delay</code> an HTTP request.
   * (Default value: 20000 it means 20000 ms or 20 seconds)</p>
   */
  var $timeout = 20000;

So timeout is 20s, but the refresh time can be up to 30s.
I will try to set the timeout to 120000 (2 minutes), hope this helps.
zeep
New member
 
Posts: 1
Joined: Fri Mar 28, 2008 9:48 am
Top

Postby phpfreechat » Fri Mar 28, 2008 9:55 am

Nelfo, are you trying to login to your chat with the same nickname and with two different browsers (so two different php session) ?
If the answer is yes, it's normal that it will not work as expected. Current phpfreechat doesn't make any test for this case but I can tell you this is really bad: your two browser will have two different session id and the second will overlap with the first and finally the chat behavior will be unpredictable.
So you are right, your problem is a completely different problem from this topic problem ("quit (timeout)").
I added a todolist page in the wiki and I listed your problem. http://www.phpfreechat.net/todo
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby j0sh » Fri Mar 28, 2008 10:01 am

kerphi wrote:So you are right, your problem is a completely different problem from this topic problem ("quit (timeout)").
I added a todolist page in the wiki and I listed your problem. http://www.phpfreechat.net/todo

i kerphi
i tried with 2 browser and 2 different nick!
j0sh
Member
 
Posts: 12
Joined: Wed Mar 26, 2008 11:35 am
Top

Postby phpfreechat » Fri Mar 28, 2008 10:02 am

j0sh, you are right, if the php session is not well configured on your server phpfreechat behavior would be unpredictable... Could you check that the sessions are working well on a simple script disconnected from the chat ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Fri Mar 28, 2008 10:03 am

j0sh wrote:
kerphi wrote:So you are right, your problem is a completely different problem from this topic problem ("quit (timeout)").
I added a todolist page in the wiki and I listed your problem. http://www.phpfreechat.net/todo

i kerphi
i tried with 2 browser and 2 different nick!

I was not spoking to you :)
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby j0sh » Fri Mar 28, 2008 10:08 am

kerphi wrote:j0sh, you are right, if the php session is not well configured on your server phpfreechat behavior would be unpredictable... Could you check that the sessions are working well on a simple script disconnected from the chat ?

i installed the chat on a community based on php sessions :-) so sessions work well... is possibile that phpfreechat session variables interfere with site session variables?
j0sh
Member
 
Posts: 12
Joined: Wed Mar 26, 2008 11:35 am
Top

Postby shini » Fri Mar 28, 2008 11:39 am

zeep wrote:I also experience this bug. In my opinion the timeout mechanism is much too aggressive.

Taking a look at pfcglobalconfig:
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);

  /**
   * <p>This is the time of inactivity to wait before considering a user is disconnected (in milliseconds).
   * A user is inactive only if s/he closed his/her chat window. A user with an open chat window
   * is not inactive because s/he sends each <code>refresh_delay</code> an HTTP request.
   * (Default value: 20000 it means 20000 ms or 20 seconds)</p>
   */
  var $timeout = 20000;

So timeout is 20s, but the refresh time can be up to 30s.
I will try to set the timeout to 120000 (2 minutes), hope this helps.

I don't think it helps... Here are my settings (on version 1.0final):

$params["refresh_delay"] = 6000;
$params["timeout"] = 300000;

And the problem still occurs...
shini
Member
 
Posts: 35
Joined: Wed Mar 05, 2008 2:10 pm
Top

PreviousNext

Post a reply
61 posts • Page 2 of 5 • 1, 2, 3, 4, 5

Return to General Support (v1.x)

Who is online

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