Hi guys,
I used mysql_ping() function in my program. But when I unplug the network wire
between client and MySQL server, my program has no response as mysql_ping() can
not return value and hanged there.
Is this a bug of mysql_ping() ? or any other advice?
thanks!!!
*^_^*
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