freebsd-skq/usr.bin/tftp
asomers ccec95ca4c 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
..
main.c Fix uninitialized warning, and work around a bug in gcc over clobbering 2018-02-10 17:17:15 +00:00
Makefile Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tftp.1
tftp.c tftpd: Flush files as soon as they are fully received 2018-03-09 23:25:18 +00:00
tftp.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00