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,