aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/echo
diff options
context:
space:
mode:
authorGravatar pmarks <pmarks@google.com>2014-12-17 19:00:42 -0800
committerGravatar Michael Lumish <mlumish@google.com>2014-12-19 13:11:09 -0800
commitb74550655a3d5eb5deebd86b692541994efe63bb (patch)
tree95908d568619c3e1968b5daa1cdbf5d4751d1dd7 /test/core/echo
parent40260c4d5b607a5808b7e48511baa732b70468fc (diff)
gRPC: Avoid AF_INET6 sockets when the ::1 loopback address doesn't exist.
On Linux with disable_ipv6=1, we can create sockets bound to [::]:port, yet connecting to that address triggers an Unreachable error. Since IPv6 is useless on such machines, it's cleaner to turn it off than expose users to a half-broken state. Change on 2014/12/17 by pmarks <pmarks@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82387437
Diffstat (limited to 'test/core/echo')
-rw-r--r--test/core/echo/echo_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/echo/echo_test.c b/test/core/echo/echo_test.c
index cc265cadbf..748e8bc0ef 100644
--- a/test/core/echo/echo_test.c
+++ b/test/core/echo/echo_test.c
@@ -40,11 +40,11 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include "src/core/iomgr/socket_utils_posix.h"
#include <grpc/support/alloc.h>
#include <grpc/support/host_port.h>
#include <grpc/support/log.h>
#include <grpc/support/string.h>
-#include "test/core/util/ipv6.h"
#include "test/core/util/port.h"
int test_client(const char *root, const char *host, int port) {