Dear All:
        i have a long-running WebKit servlet that constantly acess the
MySQL database (with class and instance caching enabled). I store the
datbabase connection obj in the servlet instance 
(like self.db = MySQLdb.connect(....)). After one day, i found the
MySQLdb complaining OperatioalError and no databse selected.
I guess it's because the connection has timeout. Does anyone knows
about how to detect this error and reconnect it when necessay ?


thanks


Kao


==========================================================
 PC home �K�O�q�l�H�c�A�ӽнЦ�: http://www.pchome.com.tw 
 PC home Online �����a�x�@�@ �|���Ĥ@�A�x�W�̤j���J�f���� 
==========================================================

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to