File tree Expand file tree Collapse file tree
samples/deployer-chromeapp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,13 @@ const STATUS_PREFIX = 'CLOUD_INSTALL_STATUS';
3030const INITIAL_CONNECTION_INTERVAL_MS = 500 ;
3131const MAX_CONNECTION_INTERVAL_MS = 10000 ;
3232
33+ // Timeouts for established SSH connections.
34+ // We define these chiefly so that the installer fails quickly
35+ // in case the server is destroyed during installation, e.g.
36+ // when the user cancels install.
37+ const KEEPALIVE_INTERVAL_MS = 1000 ;
38+ const KEEPALIVE_MAX_FAILURES = 5 ;
39+
3340// Installs uProxy on a server, via SSH.
3441// The process is as close as possible to a manual install
3542// so that we have fewer paths to test.
@@ -49,6 +56,8 @@ class CloudInstaller {
4956 port : port ,
5057 username : username ,
5158 privateKey : key ,
59+ keepaliveInterval : KEEPALIVE_INTERVAL_MS ,
60+ keepaliveCountMax : KEEPALIVE_MAX_FAILURES ,
5261 // Remaining fields only for type-correctness.
5362 tryKeyboard : false ,
5463 debug : undefined
Original file line number Diff line number Diff line change 2727 "send" : " *"
2828 }
2929 },
30- "key" : " MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArOOsgNK52HYy9483rhgsofyHTp/NbmXkpHNLoarN027kqKVPS3U36/L2XyPJOAtvy+DDR+kCro1JmdFWBwPAk5AqvSKvfLzuXkO+98T/3ZhqfAl4KIqc0C+PsWIYsANTAbKkXlP4bATEK6O5Mq0aItAHGLSmKoNrAAVrtxmETXaumcrq78amOpAZz7XrPdJVhrHd6uQbR90WeFEe8LBOqdnA4iKeuMI9IQdDLKGSizhYFZP78HKSk0ZY2uYeJFpya0iXAvbcuHRGY9/c7pP5UDo+FExdyrgJnIt7H1W5LWfy/mAMnR77dvCSfGX1vCD7faWntYvzZO4FlISh+h21+QIDAQAB "
30+ "key" : " MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAk6KrQptZchMYwQN8CsbRVmhV/COoR0lxansERcz+OrkPctUBSTQVYJw3t17+6JyMPnKYR2DMKCTeYQGrmXzm2U0KpujEKN3WSTtZI4ynTzKbGhWIYo6exaHufcslJngEG91ua/q1fJz3e5Mla8+tIsT9bVdVf4NLfODNbky/Uo0M6KpOLO9r2zJoiO0yg4ThBH+TkNwH8icvHJbt2LzZVRSZtQ1Wl1uT15vnwJPOEYVQkpnEMY5yMBPxyOZ1AmUx714YAas80pSZ7+BlM9ReIirYB7lxeY6hAqs4u8iP5SDh5bg6YFXeYecwQyvnKglLdHq6djy9QyVLKUKxFzMH/wIDAQAB "
3131}
You can’t perform that action at this time.
0 commit comments