[frdp] Ignore stale ports. (#16944)

When forwarding all ports, run a test connection to each Dart VM instance, stopping port forwarding if the connection fails.

Also does the same for any batched calls that hit all Dart VM instances.
This commit is contained in:
Andrew Davies
2018-04-27 13:24:01 -07:00
committed by GitHub
parent 549acac655
commit 61de5014b6
4 changed files with 72 additions and 23 deletions

View File

@@ -31,7 +31,8 @@ Future<Null> main(List<String> args) async {
final String interface = args.length > 1 ? args[1] : '';
// Example ssh config path for the Fuchsia device after having made a local
// build.
const String sshConfigPath = '../../out/release-x86-64/ssh-keys/ssh_config';
const String sshConfigPath =
'../../../fuchsia/out/x64rel/ssh-keys/ssh_config';
final FuchsiaRemoteConnection connection =
await FuchsiaRemoteConnection.connect(address, interface, sshConfigPath);
print('On $address, the following Dart VM ports are running:');