follow-up to r1523853 and r1524014:
  when running in automated mode (client starts the server process),
  make the client stop calling apr_connect() as soon as it works or
  some non-ECONNREFUSED error occurs

Submitted by: Yann Ylavic <ylavic.dev gmail.com>


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1524031 13f79535-47bb-0310-9956-ffa450edef68