freebsd-dev/libexec/tftpd
Alan Somers d3953c1f47 tftpd: Flush files as soon as they are fully received
On an RRQ, tftpd doesn't exit as soon as it's finished receiving a file.
Instead, it waits five seconds just in case the client didn't receive the
server's last ACK and decides to resend the final DATA packet.
Unfortunately, this created a 5 second delay from when the client thinks
it's done sending the file, and when the file is available for other
processes.

Fix this bug by closing the file as soon as receipt is finished.

PR:			157700
Reported by:		Barry Mishler <barry_mishler@yahoo.com>
MFC after:		3 weeks
2018-03-09 23:25:18 +00:00
..
tests tftpd: Flush files as soon as they are fully received 2018-03-09 23:25:18 +00:00
Makefile Add some functional tests for tftpd(8) 2018-03-09 15:30:20 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tftp-file.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-file.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-io.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-io.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-options.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-options.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-transfer.c tftpd: Flush files as soon as they are fully received 2018-03-09 23:25:18 +00:00
tftp-transfer.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-utils.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-utils.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftpd.8 Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
tftpd.c tftpd: Flush files as soon as they are fully received 2018-03-09 23:25:18 +00:00