Looking at may trace, here is what is happening internally in the API:
free_old_query
mysql_close
mysql_close
mysql_reconnect
mysql_send_query
mysql_real_query
mysql_query
_____
From: Julien Chavanton
Sent: September 25, 2006 9:42 AM
To: 'plusplus@stripped'
Subject: Aparent connection lost resulting in crash
When there is a problem with a connection the next time we call a
function like mysql_query() or mysql_ping() it does report an error
witch is fine but if I call
2 function in a row before reseting the connection the function crash
instead of reporting an error, I can live with that.
Now when a connection is left idle for some time and is probably
disconnect if I call mysql_query() it does crash instead of reporting an
error.
How can I validate this properly or handle it correctly?