[OpenSIPS-Devel] SF.net SVN: opensips:[5581] branches/1.5/modules/db_mysql/dbase.c

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Apr 6 10:31:42 CEST 2009


Revision: 5581
          http://opensips.svn.sourceforge.net/opensips/?rev=5581&view=rev
Author:   bogdan_iancu
Date:     2009-04-06 08:31:42 +0000 (Mon, 06 Apr 2009)

Log Message:
-----------
- backport from trunk (rev #5580):

- workaround a bug in mysql clinet lib - it looks like the mysql_stmt_execute() crashes if the mysql server is down (on "Can't connect to local MySQL server" error) - see http://bugs.mysql.com/bug.php?id=43560
  What I did is to have as screen function the mysql_ping() function - this will detect the error (disconnect state) and prevent executing the bogus mysql_stmt_execute(). It is no the nicest fix, but it fixes the crash.

 Reported by Thomas Gelf.

Revision Links:
--------------
    http://opensips.svn.sourceforge.net/opensips/?rev=5580&view=rev

Modified Paths:
--------------
    branches/1.5/modules/db_mysql/dbase.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list