#979209 handle interrupted and partial uploads

Package:
tftpd-hpa
Source:
tftp-hpa
Description:
HPA's tftp server
Submitter:
Boris Kolpackov
Date:
2026-09-27 13:03:02 UTC
Severity:
normal
#979209#5
Date:
2021-01-04 08:15:46 UTC
From:
To:
We have discovered that tftpd-hpa does not detect a partial upload nor
does it remove the file in case of an interrupted upload. The attached
patch fixes both of these issues. Specifically, it does the following:

1. If the client sent the upload tsize, then verify that it matches
   the final file size on disk.

2. And, if the sizes do not match or any other error was encountered
   during upload, log a warning and remove the file.

We have tested the patch both manually with curl to confirm the above
error cases are indeed handled as expected, and on our CI system (where
tftpd-hpa is used to communicate result from the VM to the host) for
any regressions.

I am also happy to answer any questions about the issues or the patch.

#979209#10
Date:
2026-09-27 13:00:07 UTC
From:
To:
Source: tftp-hpa
Source-Version: 7.1-1

Upstream's 7.1 changelog says:

    If --create is specified, the server will now delete a failed
	upload file.

I hope this is what you mean.

Best,
Chris