[Bug 157700] tftpd(8) in 8.2-RELEASE expects more data after EOF

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 3 14:17:25 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=157700

--- Comment #8 from commit-hook at freebsd.org ---
A commit references this bug:

Author: asomers
Date: Fri Aug  3 14:17:12 UTC 2018
New revision: 337247
URL: https://svnweb.freebsd.org/changeset/base/337247

Log:
  MFC r330710:

  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>

Changes:
  stable/10/libexec/tftpd/tests/functional.c
  stable/10/libexec/tftpd/tftp-transfer.c
  stable/10/libexec/tftpd/tftpd.c
  stable/10/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