Re: sqlbox mysql re-connection (question)

"Mi Reflejo" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.