freebsd-skq/usr.bin/tftp
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
..
main.c Fix uninitialized warning, and work around a bug in gcc over clobbering 2018-02-10 17:17:15 +00:00
Makefile
Makefile.depend
tftp.1
tftp.c tftpd: Flush files as soon as they are fully received 2018-03-09 23:25:18 +00:00
tftp.h