Yes the failover code is full of fail

Maybe "bitcoin" needs to find a programmer who can actually write a miner that works properly and takes pride in the quality of their code, instead of sitting around with $20-30mil and not giving a crap about it

After all these years, Bitmain can't do it, nor can ck

Bitmain won't because that means actually writing code vs just stealing it.
As for the originator of the mess -- reading through the Halong Dragonmint thread I've seen mention of it handling failover better so...
Then again safe bet ck ain't working for Halong for free. I will say that he has been busy there -- he's been releasing firmware updates every week or so to get the mints closer to as-advertised spec the
fools investomers believed and then threw money at Halong in typical pre-sale frenzy.
God forbid things he comes up with eventually appears in the git for cgminer so Canaan/Avalons can use it... Of course soon after BM's Ants would be using it as well.