[mythtv] Database server and pings (r14205)

Nigel Pearson nigel at ind.tansu.com.au
Sun Aug 19 11:26:05 UTC 2007

On 17/08/2007, at 2:37 PM, Rob Smith wrote:
> I would imagine we could do something akin to
> ping server
> if fail, run a connect with a really really fast timeout (15 seconds?)
> if that fails, then ask for db settings?

Apart from the 15s timeout, that is what we currently do.

I wanted to have the same timeout on the ping and telnet,
(er, connect), but was too lazy to use anything harder
than MythSocket::connect() in telnet().

If anyone has sufficient motivation to add a timeout code
to either of those, it would make misconfigured startups
just that bit nicer.

Nigel Pearson, nigel at ind.tansu.com.au|"Beware - I am a carrier
Telstra Net. Eng., Sydney, Australia |          of surrealism"
Office: 9202 3900    Fax:  9261 3912 |       D  A
Mobile: 0408 664435  Home: 9792 6998 |       L  I

More information about the mythtv-dev mailing list