Modified port agent client to not reset the retry_counter after a
successful connection has been made to the port_agent, if a retry
has been made within a given time window.