If a connection has been closed by the mySQL server, like in a timeout
condition, does the API function mysql_ping() awake the connection again if
the reconnect flag was set, or will it just return a lost server error?

In other words, if I'm testing to see if a long-unused connection is dead
before I close it by calling mysql_ping(), am I then forced to call
mysql_close() or can I assume the connection is closed and lost and just
free up the memory I've used for the connection?  If I call mysql_close()
on a connection that's already closed, will it just return quietly or will
it segfault?




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to