RE: TSQLServer connection timeout

From: Linev Sergei <S.Linev_at_gsi.de>
Date: Fri, 7 Jul 2006 10:28:17 +0200


Hi, Diego

Current TSQLServer::Connect() method does not include possibility for setting up timeout for connection.

Probably, I will provide some static memeber in TSQLServer class to overcome this problem.

Regards,
Sergey Linev

> -----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 - 10:28:31 MEST

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