| Index: runtime/bin/socket_patch.dart
|
| diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
|
| index 48508274a6ef2ceb1dfe1b62e5e20ecee65211e4..cd02b29ab921253818f8f8f8201660b9a6896a7d 100644
|
| --- a/runtime/bin/socket_patch.dart
|
| +++ b/runtime/bin/socket_patch.dart
|
| @@ -449,7 +449,12 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject {
|
| connectNext();
|
| } else {
|
| // Query the local port, for error messages.
|
| - socket.port;
|
| + try {
|
| + socket.port;
|
| + } catch (e) {
|
| + error = createError(e, "Connection failed", address, port);
|
| + connectNext();
|
| + }
|
| // Set up timer for when we should retry the next address
|
| // (if any).
|
| var duration = address.isLoopback ?
|
|
|