ck123ck
06-25-2003, 10:20 AM
Hi all:
I had encountered a problem with mysql_query. When mysql_query executed after the database was shutdown, the api will hang for couple of minutes before detecting the mysql server has gone away.
The scenario is that mysql_real_connect will maintain there (without close after query) and send out query if there is any query required. This is to shorten the time and overhead to do connection for every query.
Anyway know any ideas to shorten the time to be hang for executing mysql_query. Please advice.
Looking forward for your answer
I had encountered a problem with mysql_query. When mysql_query executed after the database was shutdown, the api will hang for couple of minutes before detecting the mysql server has gone away.
The scenario is that mysql_real_connect will maintain there (without close after query) and send out query if there is any query required. This is to shorten the time and overhead to do connection for every query.
Anyway know any ideas to shorten the time to be hang for executing mysql_query. Please advice.
Looking forward for your answer