Find this line:<br><br>if (mysql_real_connect(mysql, dbhost, dbuser...<br><br>Add this before that line:<br><br>int timeout = 10; /* 10 second timeout */<br>mysql_options(mysql, MYSQL_OPT_CONNECT_TIMEOUT, (const char *) &timeout);
<br><br>And recompile.<br><br><div><span class="gmail_quote">On 10/31/07, <b class="gmail_sendername">Doug Lytle</b> <<a href="mailto:support@drdos.info">support@drdos.info</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tilghman Lesher wrote:<br>> The key would be adding this line at the appropriate point:<br>> mysql_options(&mysql, MYSQL_OPT_CONNECT_TIMEOUT, &timeout)<br>> where timeout is an integer. Remember that it needs to be set
<br>> BEFORE the connection.<br>><br>><br><br>Anybody like to give more detailed instructions for those of use not<br>instructed in C?<br><br>Thanks!<br><br>Doug<br><br><br>--<br><br>Ben Franklin quote:<br><br>"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
<br><br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>