[mythtv] Database server and pings (r14205)

Rob Smith kormoc at gmail.com
Fri Aug 17 04:37:28 UTC 2007


On 8/16/07, Joe Ripley <vitaminjoe at gmail.com> wrote:
> On 8/16/07, Nigel Pearson <nigel at ind.tansu.com.au> wrote:
>
> > Anything that uses TCP will take ages (minutes on most OSs).
>
> Indeed.  My own similar test had even worse results:
>
> error: 'Lost connection to MySQL server during query'
>
> real    3m9.004s
> user    0m0.004s
> sys     0m0.004s
>
> Three minutes is a long time. :)

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?

Just a thought
~Rob


More information about the mythtv-dev mailing list