summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 00:15:38 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 00:15:38 +0000
commitf820596a817c435611567e5131709162bfb6cfad (patch)
treeb227ea58fe34690ed748702776624bfa9ac5cad6 /net/base
parentf8564c104c45f3caca228f73b43a40e4ea72ce02 (diff)
downloadchromium_src-f820596a817c435611567e5131709162bfb6cfad.zip
chromium_src-f820596a817c435611567e5131709162bfb6cfad.tar.gz
chromium_src-f820596a817c435611567e5131709162bfb6cfad.tar.bz2
Remove the temporary instrumentation to getaddrinfo().
This is a revert of r31267. BUG=22083 Review URL: http://codereview.chromium.org/434048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/host_resolver_proc.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/net/base/host_resolver_proc.cc b/net/base/host_resolver_proc.cc
index 7e79198..cd6fc12 100644
--- a/net/base/host_resolver_proc.cc
+++ b/net/base/host_resolver_proc.cc
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <algorithm>
-
#include "net/base/host_resolver_proc.h"
#include "build/build_config.h"
@@ -183,24 +181,7 @@ int SystemHostResolverProc(const std::string& host,
// Restrict result set to only this socket type to avoid duplicates.
hints.ai_socktype = SOCK_STREAM;
- // Copy up to the first 255 bytes of |host| onto the stack, so we can see
- // what it was when getaddrinfo() crashes.
- // TODO(eroman): Remove this once done investigating http://crbug.com/22083.
- char buffer[256];
- size_t actual_size = host.size() + 1; // The size of |host| (including NULL).
- size_t saved_size = std::min(actual_size, sizeof(buffer));
- memcpy(buffer, host.data(), saved_size - 1);
- buffer[saved_size - 1] = '\0';
-
- // Try to use the copy of |host| that was saved to the stack.
- // (This will help rule out concurrent mutations on |host| as a factor.)
- const char* host_cstr = (actual_size == saved_size) ? buffer : host.c_str();
-
- int err = getaddrinfo(host_cstr, NULL, &hints, &ai);
-
- // Keep the variables alive so compiler can't optimize away.
- CHECK(actual_size > 0 && buffer[saved_size - 1] == '\0');
-
+ int err = getaddrinfo(host.c_str(), NULL, &hints, &ai);
#if defined(OS_LINUX)
net::DnsReloadTimer* dns_timer = Singleton<net::DnsReloadTimer>::get();
// If we fail, re-initialise the resolver just in case there have been any