Exit early from repairing connections.
Timeout on getNextConn from start of function, not after iterating hosts
optimizing var
remove unused code