]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Increase timeout for --remote-expect
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 21 Oct 2014 09:22:10 +0000 (11:22 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 21 Oct 2014 09:22:10 +0000 (11:22 +0200)
If the remote target is connected over slow TCP connection, it may take
long time for the connection to be established. According to tcp(7) the
default value of tcp_syn_retries corresponds to 180 seconds so we should
wait the same time here.

novaboot

index 2589374fb4b654376c7197affee78284ec560f08..6370dba14fffa4f6623fd69be6ab6b64d9b0f48c 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -732,7 +732,7 @@ END
 
 if ($remote_expect) {
     $exp || die("No serial line connection");
-    $exp->expect(10, $remote_expect) || die "Expect for '$remote_expect' timed out";
+    $exp->expect(180, $remote_expect) || die "Expect for '$remote_expect' timed out";
 }
 
 if (defined $reset_cmd) {