Vikram Ambrose <> was heard to say:

> Is there a way of having the mysql driver, reconnect and then complete
> the query without erroring out, in the case of driver/server timeout?
> This way I do not lose my query to a timeout or need to have some sort
> of global command buffer that the callback would use to re-execute the
> failed query.


does the MySQL API provide enough information to tell from a failure  
of mysql_query that the connection has stalled? I've found a log entry  
in cvs which added a timeout option to the driver, so with that in  
place and a useful error message from libmysqlclient I'd say it's  
doable. We'd just have to loop over a limited number of retries,  
trying to reconnect each time before resending the query.


Markus Hoenicka
AQ score 38

This email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit --
libdbi-users mailing list

Reply via email to