• 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

Disconnect in 1-2 minutes

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

Post a reply
20 posts • Page 2 of 2 • 1, 2

Postby kswift » Thu May 15, 2008 8:01 pm

a3093 and brazo: did you apply kerphi's tweak or one of the other suggestions here? seems it does not work for me yet.
kswift
New member
 
Posts: 2
Joined: Tue May 06, 2008 4:54 pm
Top

Postby phpfreechat » Fri May 16, 2008 8:21 am

a3093 wrote:It is OK

Ok, I submitted the patch on the official source code : revision 1240
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby LuxuriaMusic » Thu May 22, 2008 6:28 am

I implemented the fix above and users are still having time out problems - in fact all users get timed out/disconnected at the same time and when they attmpt to login the chat just hangs. (we have set the timeout parameter to 35000).

What can I do to help troubleshoot? Is there any way to disable the time out so that a user disconnects only when they choose disconnect or close their browser.

Please advise.

Cliff.
LuxuriaMusic
New member
 
Posts: 1
Joined: Thu May 22, 2008 6:16 am
Top

Postby phpfreechat » Fri Aug 01, 2008 8:12 am

kerphi wrote:Ok, so according to cls's and your idea, could you try this patch ?
Code: Select all
Index: containers/file.class.php
===================================================================
--- containers/file.class.php   (révision 1238)
+++ containers/file.class.php   (copie de travail)
@@ -99,7 +99,7 @@
     $leafexists = file_exists($leaffilename);
     if ($leafvalue == NULL)
     {
-       file_put_contents($leaffilename, '', LOCK_EX);
+      touch($leaffilename);
     }
     else
     {

Please keep me informed if it fixes the problem and I'll commit the patch on the official source code.

This patch broke the deop command. I have to change this piece of code, I propose the following patch :
Code: Select all
Index: src/containers/file.class.php
===================================================================
--- src/containers/file.class.php       (révision 1248)
+++ src/containers/file.class.php       (copie de travail)
@@ -110,6 +110,7 @@
     $leafexists = file_exists($leaffilename);
     if ($leafvalue == NULL)
     {
+      unlink($leaffilename);
       touch($leaffilename);
     }
     else

Please check on your server if it work.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby permutations » Sat Nov 29, 2008 5:30 am

FYI... I'm running phpFreeChat 1.2, which I assume has this patch, and I'm still having the timeout problem.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Previous

Post a reply
20 posts • Page 2 of 2 • 1, 2

Return to General Support (v1.x)

Who is online

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