Quantcast

Maximum PC

It is currently Thu Oct 02, 2014 9:42 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Post time restriction
PostPosted: Wed Mar 23, 2005 1:59 pm 
Smithfield
Smithfield
User avatar

Joined: Sun Sep 05, 2004 9:01 am
Posts: 8091
Has the 'cool down' time been increased? I've noticed in the last week or so that even a good 15-20 seconds after making a post it will give me the "you must wait etc..." error when trying to post again.

Kind of frustrating.


Top
  Profile  
 
 Post subject: Re: Post time restriction
PostPosted: Wed Mar 23, 2005 2:11 pm 
iron colbinator
iron colbinator
User avatar

Joined: Tue May 25, 2004 2:25 pm
Posts: 2761
Location: Washington, the state
urmumsacow wrote:
Has the 'cool down' time been increased? I've noticed in the last week or so that even a good 15-20 seconds after making a post it will give me the "you must wait etc..." error when trying to post again.

Kind of frustrating.


Ironically, this has been posted all over the place. The setting is 15 seconds, but obviously it's not just 15 seconds anymore and seems to gradually be getting worse.

I know Chams/Six is looking into the email notification problem, but I do not think he is investigating the re-post timeout problem.

My only theory is something like clock drift on the server that's causing it to lose track of time compared to the client side... dunno. It's hard to say without having access to the server and looking into what phpBB does.

I agree that it is very frustrating. We can lower the setting, but if 15 seconds means 45 seconds, 5 seconds will still mean 35 seconds, and if it keeps getting worse, it's not going to matter much.


Top
  Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 2:13 pm 
Monkey Federation (Top 10)*
Monkey Federation (Top 10)*
User avatar

Joined: Thu Jun 24, 2004 1:22 pm
Posts: 27377
Location: In a cage, dumbass.
RE
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
E
POST


Top
  Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 3:40 pm 
In the lab!
In the lab!
User avatar

Joined: Sun Jun 06, 2004 10:47 am
Posts: 831
Location: Secret Laboratory
I belive it's becuase we're running on a load balanced system... IE there are several web servers feeding the site. MaxPC and all Future Network properties are hosted by a company called Atomz. They specialize is high-avalibility sites for big businesses and corporations.

as a result of what I was say is a safe guess it is clock drift between the servers. phpBB does a basic time check.

it takes the current server time and subtracts from it the time of your last post. if that time is less than the so called "flood time" it exits and throws the error.

The problem arises with the drift between servers. Lets say you make a post on server A and it sets your time for the post. Now you go to post again but this time server B is accessed. Well becuase it's clock is say a minute or two(or God forbid 10+ minutes) behind server A when phpBB does the time check it basically gets a negative value and will throw the error. Every time you try to post if you get server B you have to wait till it's clock catches up to the "fast" server plus the 15 seconds before it'll let you post.

The only way to remove the problem is to remove the flood protection or get the server admins to keep their server clocks synced better. This is surprisingly a simple thing to do yet too many admins never think to even do it. It's very important especially in load balancing situations.

Pointless but interesting fact: php and mysql use the unix timestamp for tracking times. Unix timestamp is the measure of seconds that have elapsed since January 1 1970 00:00:00 GMT. This is known as the Unix Epoch. :!:


Top
  Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 3:45 pm 
iron colbinator
iron colbinator
User avatar

Joined: Tue May 25, 2004 2:25 pm
Posts: 2761
Location: Washington, the state
all hail NTP


Top
  Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 4:14 pm 
In the lab!
In the lab!
User avatar

Joined: Sun Jun 06, 2004 10:47 am
Posts: 831
Location: Secret Laboratory
Just for SAG(1) sake I give you the flood control code for phpBB 2.0.13.

Taken from function submit_post() in the /includes/functions_post.php file. This is GPL code BTW.

Code:
//
// Flood control
//
$where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id'];
$sql = "SELECT MAX(post_time) AS last_post_time
   FROM " . POSTS_TABLE . "
   WHERE $where_sql";
if ($result = $db->sql_query($sql))
{
   if ($row = $db->sql_fetchrow($result))
   {
      if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < intval($board_config['flood_interval']))
      {
         message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
      }
   }
}

(1) - SAG stands for Shits and Giggles


Top
  Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 9:35 pm 
King of All Voodoo2 Cards
King of All Voodoo2 Cards
User avatar

Joined: Tue Jun 22, 2004 10:41 am
Posts: 9316
Spider Monkey wrote:
E
POST


WHORE



Top
  Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 9:21 am 
Monkey Federation (Top 10)*
Monkey Federation (Top 10)*
User avatar

Joined: Thu Jun 24, 2004 1:22 pm
Posts: 27377
Location: In a cage, dumbass.
Flytrap7 wrote:
Spider Monkey wrote:
E
POST


WHORE



:shock: :shock: :shock:

HAHAHAHAHOHOHHEHEHEHAHAHAHAHAHA!™

That was certainly original!


Top
  Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 11:57 am 
Smithfield
Smithfield
User avatar

Joined: Sun Sep 05, 2004 9:01 am
Posts: 8091
huh, well I havn't been around for awhile so I didn't know the problem had been voiced.


Top
  Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 12:02 pm 
Monkey Federation (Top 10)*
Monkey Federation (Top 10)*
User avatar

Joined: Thu Jun 24, 2004 1:22 pm
Posts: 27377
Location: In a cage, dumbass.
That's okay. urMUMS the word. ;)


Top
  Profile  
 
 Post subject:
PostPosted: Fri Mar 25, 2005 5:27 pm 
Smithfield*
Smithfield*
User avatar

Joined: Fri Jul 09, 2004 9:17 am
Posts: 7159
Location: In HyperTransport
I FOUND A WORKAROUND! with the new quick reply mod you can now make posts as fast as you can type. this however doesnt help editing, but it does help if you a quick browser and go from thread to thread in under "15" seconds.


Top
  Profile  
 
 Post subject:
PostPosted: Fri Mar 25, 2005 5:55 pm 
Java Junkie
Java Junkie
User avatar

Joined: Mon Jun 14, 2004 10:23 am
Posts: 24224
Location: Granite Heaven
Oh goody. Let the spamming recommence.

:P


Top
  Profile  
 
 Post subject:
PostPosted: Fri Mar 25, 2005 6:03 pm 
Smithfield
Smithfield
User avatar

Joined: Sun Sep 05, 2004 9:01 am
Posts: 8091
gramaton cleric wrote:
I FOUND A WORKAROUND! with the new quick reply mod you can now make posts as fast as you can type. this however doesnt help editing, but it does help if you a quick browser and go from thread to thread in under "15" seconds.

Naw, it warned me yesterday even from the quick reply


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.