[Kde-pim] Long-running app loses mysql connection

Andras Mantia amantia at kde.org
Tue Jun 11 18:30:57 BST 2013


Daniel Vrátil wrote:
> 
> According to [0], using setConnectOption("MYSQL_OPT_RECONNECT=1")  should
> automatically restore the connection if it's lost. It could be simply
> added to the Akonadi server as a default option for MySQL backend.
> 
> Note sure how about PostgreSQL (if the problem is valid there too).

Yes, the same problem is present with PostgreSQL, you need an extra query to 
actually detect the loss of connection.

Andras
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list