[sr-dev] [kamailio] Database timeout over SSL? (#406)

Daniel-Constantin Mierla notifications at github.com
Mon Nov 23 17:21:29 CET 2015


It the code I see that the module attempts to reconnect only on errors CR_SERVER_GONE_ERROR and  CR_SERVER_LOST.

It appears that in this case the error code is CR_SSL_CONNECTION_ERROR.

We can add this code to the condition to attempt to re-connect, but I wonder if other codes should be added, the list is at:

  * https://dev.mysql.com/doc/refman/5.5/en/error-messages-client.html#error_cr_ssl_connection_error

If you want to try yourself, see modules/db_mysql/km_dbase.c, line 116.

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/406#issuecomment-158985365
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151123/9d980d8e/attachment.html>


More information about the sr-dev mailing list