[Bug 157700] tftpd(8) in 8.2-RELEASE expects more data after EOF
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Mar 9 23:25:58 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=157700
--- Comment #4 from commit-hook at freebsd.org ---
A commit references this bug:
Author: asomers
Date: Fri Mar 9 23:25:19 UTC 2018
New revision: 330710
URL: https://svnweb.freebsd.org/changeset/base/330710
Log:
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 at yahoo.com>
MFC after: 3 weeks
Changes:
head/libexec/tftpd/tests/functional.c
head/libexec/tftpd/tftp-transfer.c
head/libexec/tftpd/tftpd.c
head/usr.bin/tftp/tftp.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list