|
From: Subredu M. <di...@ia...> - 2004-01-21 17:10:48
|
On Tue, Jan 20, 2004 at 10:13:44PM +0100, Markus Hoenicka wrote:
> I'm not exactly the MySQL expert on this list, but I think this is why
> we've added the dbi_conn_ping() function. It is not documented yet,
> but the usage should be pretty obvious from the libdbi sources. All
> you'd have to do is to ping the server before issuing the query that
> crashes your app currently. If the server does not reply, open a new
> connection.
>=20
> regards,
> Markus
using if ( !dbi_conn_ping() ) reconnect seems to work very well.=20
--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
inf. Manuel SUBREDU
Network Engineer at RoEduNet Iasi
Phone: +40 (232) 201003
+40 (742) 088067
Email: di...@ia...
website: http://manuel.iasi.roedu.net
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |