From 30f45072b9d9b0494fd1b98c02322d8f8bb5cf08 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 30 Sep 2024 10:51:48 +0200 Subject: [PATCH] Bump version --- nmrpflash.cbp | 2 +- tftp.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nmrpflash.cbp b/nmrpflash.cbp index b2fde97..bf9b66d 100644 --- a/nmrpflash.cbp +++ b/nmrpflash.cbp @@ -18,7 +18,7 @@ - + diff --git a/tftp.c b/tftp.c index ab6eb3e..04509aa 100644 --- a/tftp.c +++ b/tftp.c @@ -491,6 +491,9 @@ ssize_t tftp_put(struct nmrpd_args *args) } ret = tftp_recvfrom(sock, rx, &port, rx_timeout, blksize + 4); + + // stop calling nmrp_discard() if the last call didn't actually discard anything. + // this turned out to be a major bottleneck on Windows, each call blocking > 10ms if (discard) { discard &= nmrp_discard(args->sock); }