Actually dbpool_check is not used :).

Lets asume that we are using mySQL.

Before each query,  "dbpool_conn_consume" is called.

"dbpool_conn_consume" call the function: p->db_ops->check(pc->conn)
(declaration: p->db_ops = &mysql_ops; and .check = mysql_check_conn,)

Check function does a "mysql_ping" and returns 0 or -1.
If the connection is not active "dbpool_conn_consume" restarts the
connection and checks again, while the connection is down.

Hope it helps.

Martin

On 6/3/06, Rene Kluwen <[EMAIL PROTECTED]> wrote:
I have been looking into the sources a little bit.

But I cannot seem to find the spot where bearerbox reconnects to the MySQL
daemon.
I figure dbpool_check() should be called somewhere.

Of course, I can just put a call to that function somewhere in sqlbox.
But I would like to follow a little bit the same way as it is done elsewhere
in Kannel.

Rene Kluwen
Chimit




Reply via email to