Bump version

This commit is contained in:
Joseph C. Lehner 2024-09-30 10:51:48 +02:00
parent d6e3f15d55
commit 30f45072b9
2 changed files with 4 additions and 1 deletions

View file

@ -18,7 +18,7 @@
<Add option="-Wall" />
<Add option="-std=c99" />
<Add option="-m32" />
<Add option='-DNMRPFLASH_VERSION=\&quot;0.9.22\&quot;' />
<Add option='-DNMRPFLASH_VERSION=\&quot;0.9.24\&quot;' />
<Add option="-DWINVER=0x0600" />
<Add option="-D_WIN32_WINNT=0x0600" />
<Add option="-DWIN32_LEAN_AND_MEAN" />

3
tftp.c
View file

@ -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);
}