From 6b7f5d6026c6fd5357692a95cf12700589aa4f6a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 21 Oct 2014 11:22:10 +0200 Subject: [PATCH] Increase timeout for --remote-expect 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novaboot b/novaboot index 2589374..6370dba 100755 --- 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) { -- 2.39.2