be sure client retries to get master with an actual port and not -1 (which is returned if the master is not known)