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 ?
Mysqli problem when user continously hits F5 button
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users