Increase TFTP rx timeout
This reverts a previous change from MAX to MIN.
This commit is contained in:
parent
493270f5e1
commit
bf7ed6e8e1
1 changed files with 1 additions and 1 deletions
2
tftp.c
2
tftp.c
|
@ -329,7 +329,7 @@ ssize_t tftp_put(struct nmrpd_args *args)
|
||||||
const char *file_remote = args->file_remote;
|
const char *file_remote = args->file_remote;
|
||||||
char *val, *end;
|
char *val, *end;
|
||||||
bool rollover, tftp_ack0_callback_called;
|
bool rollover, tftp_ack0_callback_called;
|
||||||
const unsigned rx_timeout = MIN(args->rx_timeout / (args->blind ? 50 : 5), 2000);
|
const unsigned rx_timeout = MAX(args->rx_timeout / (args->blind ? 50 : 5), 2000);
|
||||||
const unsigned max_timeouts = args->blind ? 3 : 5;
|
const unsigned max_timeouts = args->blind ? 3 : 5;
|
||||||
#ifndef NMRPFLASH_WINDOWS
|
#ifndef NMRPFLASH_WINDOWS
|
||||||
int enabled = 1;
|
int enabled = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue