apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1524031 - /apr/apr/trunk/test/sendfile.c
Date Tue, 17 Sep 2013 13:08:18 GMT
Author: trawick
Date: Tue Sep 17 13:08:18 2013
New Revision: 1524031

URL: http://svn.apache.org/r1524031
Log:
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>

Modified:
    apr/apr/trunk/test/sendfile.c

Modified: apr/apr/trunk/test/sendfile.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/sendfile.c?rev=1524031&r1=1524030&r2=1524031&view=diff
==============================================================================
--- apr/apr/trunk/test/sendfile.c (original)
+++ apr/apr/trunk/test/sendfile.c Tue Sep 17 13:08:18 2013
@@ -231,6 +231,9 @@ static int client(apr_pool_t *p, client_
             apr_sleep(connect_retry_interval);
             connect_retry_interval *= 2;
         }
+        else {
+            break;
+        }
     }
     if (rv != APR_SUCCESS) {
         aprerr("apr_socket_connect()", rv);



Mime
View raw message