diff options
author | Jules Maselbas <jmaselbas@kalray.eu> | 2023-02-07 17:20:54 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-02-13 10:10:28 +0100 |
commit | 7458d7f530daef8cc7ec788da569be137227b581 (patch) | |
tree | 21ec326053c1c1734e7dfa82679aa44895395922 /common | |
parent | 7769454f85565e2c83b0b3faea452f4b21753a31 (diff) | |
download | barebox-7458d7f530daef8cc7ec788da569be137227b581.tar.gz |
ratp: Increase the establish timeout to 1sec
Current timeout was only 100ms which is also the current initial value
for the RTO (Retransmission Time Out), this is too short as it doesn't
give barebox a chance to resent a packet during the handshake.
Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
Link: https://lore.barebox.org/20230207162055.10050-4-jmaselbas@kalray.eu
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/ratp/ratp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ratp/ratp.c b/common/ratp/ratp.c index 424c9406d2..fddb286e01 100644 --- a/common/ratp/ratp.c +++ b/common/ratp/ratp.c @@ -486,7 +486,7 @@ int barebox_ratp(struct console_device *cdev) ctx->cdev = cdev; ctx->have_synch = 1; - ret = ratp_establish(&ctx->ratp, false, 100); + ret = ratp_establish(&ctx->ratp, false, 1000); if (ret < 0) goto out; |