apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1523484 - /apr/apr/trunk/test/sendfile.c
Date Sun, 15 Sep 2013 19:12:11 GMT
Author: trawick
Date: Sun Sep 15 19:12:11 2013
New Revision: 1523484

URL: http://svn.apache.org/r1523484
Log:
Hard-code the same address family on the server side as it already
is on the client side; otherwise, connect will fail on dual-stack
if IPV6_V6ONLY defaults to ON.

(The socket setup could stand to be rewritten!)

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=1523484&r1=1523483&r2=1523484&view=diff
==============================================================================
--- apr/apr/trunk/test/sendfile.c (original)
+++ apr/apr/trunk/test/sendfile.c Sun Sep 15 19:12:11 2013
@@ -497,7 +497,7 @@ static int server(void)
     apr_sockaddr_t *localsa;
     int family;
 
-    family = APR_UNSPEC;
+    family = APR_INET;
     apr_setup(&p, &sock, &family);
 
     rv = apr_socket_opt_set(sock, APR_SO_REUSEADDR, 1);



Mime
View raw message