RE: TSQLServer connection timeout

From: Diego Faso <faso_at_to.infn.it>
Date: Fri, 7 Jul 2006 14:52:59 +0200 (MET DST)


Thank you, I just tried and everything is working. Best Regards
Diego

On Fri, 7 Jul 2006, Linev Sergei wrote:

> Hi, Diego
>
> If you update your ROOT instalation from CVS, you will be able to use following syntax:
>
> TSQLServer::Connect("mysql://host.domain/test?timeout=10")
>
> There are some more options (see TMySQLServer constructor documentaion).
> If you need some more, let me know.
>
> Regards,
> Sergey
>
>
> > -----Original Message-----
> > From: owner-roottalk_at_pcroot.cern.ch
> > [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Diego Faso
> > Sent: Freitag, 7. Juli 2006 09:51
> > To: roottalk_at_pcroot.cern.ch
> > Subject: [ROOT] TSQLServer connection timeout
> >
> >
> > Hi, I'm using the TSQLServer class in order to connect to a
> > remote mysql
> > database: my only problem is that I can't set a timeout for
> > the connection.
> > Is there a way to set a timeout for "TSQLServer::Connect" method?
> > I would like the "TSQLServer::Connect" method to exit after
> > few seconds if
> > the remote database is not available.
> >
> > Here is my system configuration:
> > OS: Gentoo Base System version 1.6.15
> > kernel: 2.6.16-gentoo-r9
> > gcc: version 3.4.6
> > root version: 5.11/07
> >
> > Thank you in advance, cheers.
> > Diego
> >
>
Received on Fri Jul 07 2006 - 15:08:46 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET