]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tftpd(8): when completing an WRQ, flush the file before acknowleding receipt
authorasomers <asomers@FreeBSD.org>
Sat, 21 Jul 2018 19:48:31 +0000 (19:48 +0000)
committerasomers <asomers@FreeBSD.org>
Sat, 21 Jul 2018 19:48:31 +0000 (19:48 +0000)
commit7fada835fd3caf7c7642d1f342c1890c8074d254
tree67ee1275bc4163c81b2e5733d2aed5d86f44257f
parent5e4f36a40ba5fd3fc45588c6f6aed2efae3245fa
tftpd(8): when completing an WRQ, flush the file before acknowleding receipt

tftpd(8) should flush a newly written file to disk before ACKing the final DATA
packet.  Otherwise there is a narrow race window when a subsequent read may not
see the file.  This is somewhat related to r330710, but the race window is much
smaller.  Hopefully this will fix the intermittent tests in Jenkins.

Reported by: Jenkins
MFC after: 2 weeks
libexec/tftpd/tftp-transfer.c