I am using mysql_pconnect to get a connection to my mysql database. I use it instead of regular mysql_connect because of the number of connections I have to make.
I get the connection at the beginning of my script and use it numerous times before the script is done.
I thought that mysql_pconnect would only create a new connection if all of its existing connections were in use. However, I see (via mysql "show processlist") that many of the connections have been idle for some time and pconnect still creates a new one.
Is there some sort of default timeout that causes pconnect to know whether or not a connection is no longer being used? Or should the ending of a script notify pconnect that the connection can now be used by someone else?
-G
I get the connection at the beginning of my script and use it numerous times before the script is done.
I thought that mysql_pconnect would only create a new connection if all of its existing connections were in use. However, I see (via mysql "show processlist") that many of the connections have been idle for some time and pconnect still creates a new one.
Is there some sort of default timeout that causes pconnect to know whether or not a connection is no longer being used? Or should the ending of a script notify pconnect that the connection can now be used by someone else?
-G