Jump to content

Mysqli problem when user continously hits F5 button


Recommended Posts

Hello,

 

I have created a new database-driven website. I've installed php 5.1.1 and mysql 5.0

I'm working with the Mysqli connector.

 

Everything works fine. Except when a user starts tampering the website by continuously hitting the F5 button.

 

On the intro-page of the website, a lot of queries are being fired against the database. When the user hits F5 quickly for, let's say, 50 times the database times out and I get the ugly error:

 

"Warning: mysqli::mysqli() [function.mysqli]: (HY000/2003): Can't connect to MySQL server on 'localhost' (10048) in..."

 

After the database 'hangs' and I am unable to connect to it for at least 30 seconds...

 

Any idea why the tampering makes my database go down for a few secs ?

 

best regards!

marten

 

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.