Revert "Reduce TFTP packet timeout"

This reverts commit 96d9f189e2.

This should address #137.
This commit is contained in:
Joseph C. Lehner 2023-10-12 16:26:21 +02:00
parent bbb7f7f721
commit d4c3fc51ee

2
tftp.c
View file

@ -329,7 +329,7 @@ ssize_t tftp_put(struct nmrpd_args *args)
const char *file_remote = args->file_remote;
char *val, *end;
bool rollover, tftp_ack0_callback_called;
const unsigned rx_timeout = args->blind ? 200 : 100;
const unsigned rx_timeout = MAX(args->rx_timeout / (args->blind ? 50 : 5), 2000);
const unsigned max_timeouts = args->blind ? 3 : 5;
#ifndef NMRPFLASH_WINDOWS
int enabled = 1;