Hi,

Today when I tried to contact a user, I got this message, "You cannot contact more than 3 users per hour. Please try again later."
That's a good feature and I agree that it should be there, the problem is that I haven't tried to contact anybody else in the last day (or two) at a minimum.... So, it seems like it might not be working properly.

Comments

greggles’s picture

Status: Active » Needs review

after some discussion in irc killes found that this is related to the new squid installation:

(08:22:29) killes: $number = db_num_rows(db_query("SELECT event FROM {flood} WHERE event = '%s' AND hostname = '%s' AND timestamp > %d", $name, $_SERVER['REMOTE_ADDR'], time() - 3600));
(08:22:42) killes: $_SERVER['REMOTE_ADDR'] will now be same for everybody
(08:26:03) webchick: killes: there might be an X_HTTP_FORWARD_FOR or somethibg like that.
(08:28:11) webchick: killes: http://ca.php.net/manual/en/function.getenv.php#56173
(08:28:36) lionfish left the room (quit: ).
(08:30:11) killes: webchick: yeah, I'll discuss this with osuosl
(08:30:15) webchick: Cool

so, yeah, "cool". a solution is under way so I'm marking this patch (cnr) to reflect that.

bcn’s picture

thanks Greggles for having looked look into this.

I wanted to say that after reading your update yesterday, I could again access a contact form (but didn't actually test to see if it would work, though I'm assuming it would), but today again I get the same "...cannot contact more than...per hour." message, so i guess *if* there was anything done yet, its not quite working yet.

bcn’s picture

Just to report back, that everything seems to be working fine again, so this issue can be marked fixed...

emdalton’s picture

I'm afraid not -- I just got the message, and I haven't tried to contact anyone today (or this week).

bcn’s picture

Yeah, I can also confirm that this definitely still active. Is there really a 'patch' for this, or should the status be active?

mgcarley’s picture

I realize that this isn't Slashdot, but "Me too!" Maybe there is some weird math in there and by 3 people per hour, they meant 3 people per week.

Are you sure it should be -3600 on %d? 3600 is the number of seconds in an hour, but is %d not "day" in php (I may be wrong)[1]? Perhaps Squid is caching for way too long if it is in fact a squid problem (and in that case would it not be squid at drupal.orgs end?)[2]

That said, I haven't looked at that so closely either, and similarly to Noah and emdalton, I've not contacted anyone for a couple of days either. I also have to log in a lot more often than I used to. What's up with that?

[1] No, I'm not offering a solution.
[2] Just an idea.

kbahey’s picture

Status: Needs review » Closed (duplicate)

This is a duplicate of http://drupal.org/node/142773, which has a working patch, and tested on scratch.drupal.org.