> If I call mysql_close()
> on a connection that's already closed, will it just return quietly or
> will it segfault?

You can and should always call mysql_close().  It won't yield problems
regardless of the DB's state.

Regards,
Nick G.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: C API -- using mysql_ping()


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



---------------------------------------------------------------------
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