Author Topic: Connection Timeout Issue  (Read 14176 times)

0 Members and 1 Guest are viewing this topic.

meownoi

  • Jr. Member
  • **
  • Posts: 1
Connection Timeout Issue
« on: February 05, 2009, 06:22:55 AM »
I would like to thanks to the author(s) of this great web IM.  It's all about what I need and I like it very much.

However, recently, I found that the connection timeout quite often and annoying the conversations.  The timeout occurred about every 5-10 minutes and need to refresh the whole page to reconnect (but sometimes I need to restart browser).

I've tried changing $connection_timeout from 30 secs to 18000 secs (5 hours), in chat.php:
// $connection_timeout = 30; // sec
$connection_timeout = 18000; // 18000 sec = 5 hours

But problem still exists  :'(

Please suggest me any workaround for this issue.  Or you have any ideas for the root causes?

Thank you in advance  :)

Inspirer

  • Mibew Project founder
  • Native
  • *****
  • Posts: 262
    • Mibew Messenger
Re: Connection Timeout Issue
« Reply #1 on: February 07, 2009, 01:08:28 PM »
Mostly it depends on your hosting provider, which blocks you after some number of requests.

Try to change polling interval:

For chat, in /styles/.../templates/chat.tpl change frequency argument:
var threadParams = { ...... frequency:2,

For "Awaiting Visitors" page, add frequency argument (2 secs by default):
var updaterOptions = {
   .... noclients:"<?php echo getlocal("clients.no_clients") ?>", frequency: 7 };

Evgeny.