From c234a07d67bcb8901359849198a980cb803d4f41 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 23 Oct 2023 16:18:41 +0200 Subject: [PATCH] Decrease default TFTP timeout --- tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tftp.c b/tftp.c index 007912d..40c67eb 100644 --- a/tftp.c +++ b/tftp.c @@ -329,7 +329,7 @@ ssize_t tftp_put(struct nmrpd_args *args) const char *file_remote = args->file_remote; char *val, *end; bool rollover; - const unsigned rx_timeout = MAX(args->rx_timeout / (args->blind ? 50 : 5), 2000); + const unsigned rx_timeout = MAX(args->rx_timeout / 50, 200); const unsigned max_timeouts = args->blind ? 3 : 5; #ifndef NMRPFLASH_WINDOWS int enabled = 1;