Infinite retry bug

Setting the server_retry_period to 0 causes an infinite retry when no servers are available. This takes the global timeout and applies it to connection attempts.