how to set mysql_ping timeout with MySQL++
问题 I want mysql_ping to timeout in matter of seconds. In the testcase below if a connection is established followed by "ifconfig eth0 down" the false side of conn.ping() is never reached. The thread/process enters what seems like an endless wait. I want to change this and make it timeout faster, preferably using MySQL++ options. Any idea which option that might be ? Maybe I also need to set how many times it will retry ? Reading up on the documentation for MySQL, it tells us mysql_ping will try