summaryrefslogtreecommitdiffstats
path: root/net/base/host_resolver_proc.cc
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-04 06:03:41 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-04 06:03:41 +0000
commit0ede01dae033abeb7b0f4f38675b2bb3fe30df90 (patch)
treed7ae14631a5cfdb8de6f24128e1e701f5a18bcdd /net/base/host_resolver_proc.cc
parente6ed7a5decad0946cce877b6dba245b6d7a94c89 (diff)
downloadchromium_src-0ede01dae033abeb7b0f4f38675b2bb3fe30df90.zip
chromium_src-0ede01dae033abeb7b0f4f38675b2bb3fe30df90.tar.gz
chromium_src-0ede01dae033abeb7b0f4f38675b2bb3fe30df90.tar.bz2
Revert 38078 - Turn off ipv6 when there is no support at startup.
IPv6 confusion (attempt to support when it is really not supported) has been harming performance, and this may help *some* users that don't have ipv6 support. BUG=12754 r=wtc Review URL: http://codereview.chromium.org/564052 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/574001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_resolver_proc.cc')
-rw-r--r--net/base/host_resolver_proc.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/net/base/host_resolver_proc.cc b/net/base/host_resolver_proc.cc
index d4e0766..5ccf01a 100644
--- a/net/base/host_resolver_proc.cc
+++ b/net/base/host_resolver_proc.cc
@@ -227,27 +227,4 @@ int SystemHostResolverProc(const std::string& host,
return OK;
}
-// TODO(jar): The following is a simple estimate of ipv6 support. We may need
-// to do a test resolution, and a test connection, to REALLY verify support.
-// static
-bool HostResolverProc::IPv6Supported() {
-#if defined(OS_POSIX)
- int test_socket;
-#else
- SOCKET test_socket;
-#endif
-
- test_socket = socket(AF_INET6, SOCK_STREAM, 0);
- if (test_socket == -1)
- return false;
-
-#if defined(OS_POSIX)
- close(test_socket);
-#else
- closesocket(test_socket);
-#endif
-
- return true;
-}
-
} // namespace net