apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r479582 - /apr/apr/trunk/test/testsock.c
Date Mon, 27 Nov 2006 10:50:04 GMT
Author: jorton
Date: Mon Nov 27 02:50:04 2006
New Revision: 479582

URL: http://svn.apache.org/viewvc?view=rev&rev=479582
Log:
* test/testsock.c (setup_socket): Bind the socket to 127.0.0.1 rather
than 0.0.0.0 since a connect() to the latter apparently doesn't work
on Win32; the ./sockchild-based tests only use 127.0.0.1 anyway.

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

Modified: apr/apr/trunk/test/testsock.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testsock.c?view=diff&rev=479582&r1=479581&r2=479582
==============================================================================
--- apr/apr/trunk/test/testsock.c (original)
+++ apr/apr/trunk/test/testsock.c Mon Nov 27 02:50:04 2006
@@ -79,7 +79,7 @@
     apr_sockaddr_t *sa;
     apr_socket_t *sock;
 
-    rv = apr_sockaddr_info_get(&sa, NULL, APR_INET, 8021, 0, p);
+    rv = apr_sockaddr_info_get(&sa, "127.0.0.1", APR_INET, 8021, 0, p);
     APR_ASSERT_SUCCESS(tc, "Problem generating sockaddr", rv);
 
     rv = apr_socket_create(&sock, sa->family, SOCK_STREAM, APR_PROTO_TCP, p);



Mime
View raw message