In my case, SER send 403 automatically, when MySQL connection is lost.
I didnt do any special configuration..
On 5/24/07, Alexandr Dubovikov <shurik(a)start4.info> wrote:
On Thu, May 24, 2007 at 05:09:43PM +0800, Nhadie
wrote:
Hi can you help me on how i can configure it to
send 403 Forbidden if it
cannot connect to mysql.
That's good enough for now until i figure out why ser loses connection
to mysql.
you can use mysql_ping function from C Mysql API.
if(!your_module_mysql_ping())
{
sl_reply("403 Forbidden");
break;
}
smth. like this.
thanks in advanced
nhadie
Wbr,
--
Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info
AD1-UANIC * ICQ: 122351182 *
http://www.start4.info