[OpenSER-Users] OpenSER failure when MySQL redundant database fails

Henning Westerholt henning.westerholt at 1und1.de
Tue Feb 26 11:07:51 CET 2008


On Tuesday 26 February 2008, Arturo Díaz Almagro wrote:
> I am going to try to backport the changes in the trunk version of the db
> management to openser 1.2 branch. I have performed a diff and found new
> files and significant changes in some others. My main concern is related
> with the problem exposed so I only would like to modify the part of the
> code that fixes the problem.
>
> I would be please if anyone could help me to locate that part of the code.
> After testing and confirmation from the people who mantains this portion of
> OpenSER I will share the changes.

Hi Arturo Díaz Almagro,

as i stated in a previous mail, you only need to port the changes in revision 
3606 of the trunk. I did also a few renames of variables and functions, but 
basically the only thing you will need is to add:

// set connect, read and write timeout, the value counts three times
mysql_options(ptr->con, MYSQL_OPT_CONNECT_TIMEOUT, 
     (const char *) &db_mysql_timeout_interval);
mysql_options(ptr->con, MYSQL_OPT_READ_TIMEOUT,
      (const char *) &db_mysql_timeout_interval);
mysql_options(ptr->con, MYSQL_OPT_WRITE_TIMEOUT,
      (const char *)&db_mysql_timeout_interval);

to the database driver initialization. Take a look at the changes in this 
revision to get an idea. Probably it will also work to just apply the changes 
in revision 3606 to the 1.3 mysql driver. I don't recommend to apply other/ 
more changes from the trunk.

Cheers,

Henning




More information about the Users mailing list