[OpenSIPS-Devel] SF.net SVN: opensips:[5580] trunk/modules/db_mysql/dbase.c
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Apr 6 10:30:25 CEST 2009
Revision: 5580
http://opensips.svn.sourceforge.net/opensips/?rev=5580&view=rev
Author: bogdan_iancu
Date: 2009-04-06 08:30:24 +0000 (Mon, 06 Apr 2009)
Log Message:
-----------
- 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.
Modified Paths:
--------------
trunk/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