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

Unified Diff: sdk/lib/io/socket.dart

Issue 250553003: Fix http_server_test for 1.3. (Closed) Base URL: https://dart.googlecode.com/svn/branches/1.3/dart
Patch Set: Rename to references. Created 6 years, 7 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 | « runtime/bin/socket_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket.dart
diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart
index b1e5be77eb44703edbc16661c1da61c9bf270376..b0ace925da5328b64820a84f8cc77ae5b874168d 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -388,8 +388,10 @@ abstract class RawSocket implements Stream<RawSocketEvent> {
* if the host-lookup or connection failed.
*
* [host] can either be a [String] or an [InternetAddress]. If [host] is a
- * [String], [connect] will perform a [InternetAddress.lookup] and use
- * the first value in the list.
+ * [String], [connect] will perform a [InternetAddress.lookup] and try
+ * all returned [InternetAddress]es, in turn, until connected. Unless a
+ * connection was established, the error from the first attempt is
+ * returned.
*/
external static Future<RawSocket> connect(host, int port);
@@ -479,8 +481,10 @@ abstract class Socket implements Stream<List<int>>, IOSink {
* if the host-lookup or connection failed.
*
* [host] can either be a [String] or an [InternetAddress]. If [host] is a
- * [String], [connect] will perform a [InternetAddress.lookup] and use
- * the first value in the list.
+ * [String], [connect] will perform a [InternetAddress.lookup] and try
+ * all returned [InternetAddress]es, in turn, until connected. Unless a
+ * connection was established, the error from the first attempt is
+ * returned.
*/
external static Future<Socket> connect(host, int port);
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698