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.
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) {