PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Jul 27, 2017 1:34 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Timeout backfires
PostPosted: Thu Jan 13, 2011 4:14 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Right now there's a 30 second time out on the search, or something like that. I notice if you click view your posts and view active tops (control click to open in new tab) and if you do it fast enough both go through (thus executing 2 searches per 30 second window instead of 1), if you are too slow the timeout is registered. Seems counter-intuitive, its incentive for me to pwn the server more ;-)

I know this is something that's not worth fixing but worth noting. The search timeout has always been one of my biggest complaints, and after all we are on a bigger server now.


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Thu Jan 13, 2011 6:12 pm 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
+1
My Opera browser has SpeedDial refresh enabled for DevNetWork forums (every 5 minutes), my dreambox set-top-box has a script fetching new posts on my topics (every 15 minutes) ... and when I click on "view my posts" and want to search them for a keyword ... blah :? :(

_________________
Image
http://openfmi.net/projects/flattc/ Linux is better :)


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Thu Jan 13, 2011 9:36 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Yea if someone has malice intent they'll just run it thru tor or some other anonymity/VPN service. Its probably more harmful for someone to request the logo in a loop than it is for them to temporarily increase the server load, because that way we'd incur bandwidth costs.

Without going into more detail, I feel this is one of those areas where we're not deterring the bad guys, but are hurting the good guys.

Before pytrin resolved the locking issues for us, the timeout actually helped. Before that I understood it, now I don't see the point. We should use mod_qos to block too frequent of requests to any page, but 1 page per 30 seconds is ridiculous. mod_qos could be used to block more than 30-40 requests per second per IP, that is more than reasonable. If the server is attacked the timeout can be used as a response measure, and appropriate action can be made at that time. pingdom is a free hosted ping monitor that will alert you if response time increases to above 30 seconds. http://www.pingdom.com/


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 2:44 pm 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
Really guys, pay some attention to this issue... it's very annoying!
:cry:

_________________
Image
http://openfmi.net/projects/flattc/ Linux is better :)


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 3:57 pm 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
I've mentioned this in the moderators forum. I'll get back to you once I know something.

_________________
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 5:43 pm 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5975
Location: Odessa, Ukraine
Can't reproduce. How does it look like - like standard browser tcp timeout or phpbb custom styled page?

Anyway, post a screenshot.


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 6:33 pm 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
Here you are :)


Attachments:
search_failed.png
search_failed.png [ 56.89 KiB | Viewed 13807 times ]

_________________
Image
http://openfmi.net/projects/flattc/ Linux is better :)
Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 6:41 pm 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
Maybe it's a restriction that doesn't apply to mods/admins - as when I open a new tab for the "View ... posts" links in the top right, I get all three right away. We'll need an admin to look at this, as I'm sure it's a phpBB setting.

_________________
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 8:08 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
pickle wrote:
I get all three right away.

I can replicate that by being fast, but if I try to go slow I get the timeout.


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 8:09 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
Aaaaah! Opera!?? :dubious:

Well, at least you're using Linux... :-D


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 8:15 pm 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
Jonah Bron wrote:
Aaaaah! Opera!?? :dubious:

Yes, it's fast :) really fast

And I always have a Firefox opened - for development/debugging :)

_________________
Image
http://openfmi.net/projects/flattc/ Linux is better :)


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 9:16 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Yeah my friend swears its faster than chrome, he calls chrome bloated, haha. What does that make firefox? Morbidly obese?

But yeah, this is definitely not browser specific. Its based on whether you're a mod or not, that makes sense.


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Wed Feb 09, 2011 9:56 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
VladSun wrote:
And I always have a Firefox opened - for development/debugging

Phew.

josh wrote:
Yeah my friend swears its faster than chrome, he calls chrome bloated, haha. What does that make firefox? Morbidly obese?

I use the latest Firefox 4b12, so I don't know anything about this "slow, obese" you speak of :) . The latest builds really are fast. In fact, I saw a chart that stated that TraceMonkey is actually faster than Chrome, though that doesn't speak for DOM rendering speed and the level of responsiveness of the browser itself. But 3.6 was bad though.


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Fri Feb 11, 2011 11:11 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Yeah? Try comparing cold start after a fresh bootup. Chrome beats firefox badly.


Top
 Profile  
 
 Post subject: Re: Timeout backfires
PostPosted: Fri Feb 11, 2011 11:44 am 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
Not too bad, but it might be different on Windows. Firefox took about 2 seconds, Chromium took about 1. But also, I was talking about the Javascript engine, not the browser :) . Actually, bootup time never bothers me, because I almost never close my browser. I just suspend at night. Ah Ubuntu, how I love thee :mrgreen:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

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

Jump to:  
Powered by phpBB® Forum Software © phpBB Group