Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Warren Young (warrenetr-usa.com)
Date: Mon Dec 29 2008 - 21:15:03 CST
raid fifa wrote:
> Is this a bug of mysql_ping() ? or any other advice?
Probably not. I think you'll find that it *does* time out, just after a
longer period than you'd prefer. Timeouts of 30, 60 and 120 seconds are
common in network code, because it's not possible to reliably determine
that a link is down until then.
Your OS might have a setting that makes it close all sockets using an
interface that just lost its physical link to the network. This is
often more trouble than it's worth, because the link might come back up
before any of those sockets need to send data again. If you need
immediate notification that the link to the DB is down, though, it might
be what you want.
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql