Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: dart/runtime/bin/socket_linux.cc

Issue 173523002: Version 1.2.0-dev.5.12 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/runtime/bin/socket_android.cc ('k') | dart/tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/bin/socket_linux.cc
===================================================================
--- dart/runtime/bin/socket_linux.cc (revision 32843)
+++ dart/runtime/bin/socket_linux.cc (working copy)
@@ -239,22 +239,16 @@
memset(&hints, 0, sizeof(hints));
hints.ai_family = SocketAddress::FromType(type);
hints.ai_socktype = SOCK_STREAM;
- hints.ai_flags = (AI_V4MAPPED | AI_ADDRCONFIG);
+ hints.ai_flags = 0;
hints.ai_protocol = IPPROTO_TCP;
struct addrinfo* info = NULL;
int status = getaddrinfo(host, 0, &hints, &info);
if (status != 0) {
- // We failed, try without AI_ADDRCONFIG. This can happen when looking up
- // e.g. '::1', when there are no global IPv6 addresses.
- hints.ai_flags = AI_V4MAPPED;
- status = getaddrinfo(host, 0, &hints, &info);
- if (status != 0) {
- ASSERT(*os_error == NULL);
- *os_error = new OSError(status,
- gai_strerror(status),
- OSError::kGetAddressInfo);
- return NULL;
- }
+ ASSERT(*os_error == NULL);
+ *os_error = new OSError(status,
+ gai_strerror(status),
+ OSError::kGetAddressInfo);
+ return NULL;
}
intptr_t count = 0;
for (struct addrinfo* c = info; c != NULL; c = c->ai_next) {
« no previous file with comments | « dart/runtime/bin/socket_android.cc ('k') | dart/tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698