Index: runtime/bin/socket_impl.dart |
diff --git a/runtime/bin/socket_impl.dart b/runtime/bin/socket_impl.dart |
index 3a8ecd9027e6c3cec89dafbd101c3fc8fbabae89..a0b5d563253dc3dcb1bafbe2afbff5895860e91e 100644 |
--- a/runtime/bin/socket_impl.dart |
+++ b/runtime/bin/socket_impl.dart |
@@ -292,8 +292,12 @@ class _ServerSocket extends _SocketBase implements ServerSocket { |
var result = _accept(socket); |
if (result is OSError) { |
_reportError(result, "Accept failed"); |
- } else { |
+ } else if (result) { |
_clientConnectionHandler(socket); |
+ } else { |
+ // Temporary failure accepting the connection. Ignoring |
+ // temporary failures lets us retry when we wake up with data |
+ // on the listening socket again. |
} |
} |
} |