summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-08-13 12:39:02 +0000
committerdlg <dlg@openbsd.org>2013-08-13 12:39:02 +0000
commit63ce4e592c846b3f65a7e5a8f9bb359765fc1ce1 (patch)
tree734421a7487ea3a02ceb68d3a539955b340503f3 /lib
parentadd static back to functions that originally had it (diff)
downloadwireguard-openbsd-63ce4e592c846b3f65a7e5a8f9bb359765fc1ce1.tar.xz
wireguard-openbsd-63ce4e592c846b3f65a7e5a8f9bb359765fc1ce1.zip
when handling puts from a client (ie, tftpd is writing a file to
disk), we maintain the client state after we've finished writing the file in case the client loses our ack of the last write. unfortunately we didnt close the file we'd just written when we knew it was finished, but only after we clean up the client state after that wait. because we use FILE stuff to write the file out, its likely some io flushed to disk until we finish that wait and close the file as part of cleaning up the client state. if something is coordinating a bunch of uploads and expects the file to be there after the client is happy its there, this can be "not good". this closes the file after we know its finished before proceeding to hang to handle lost acks to the client. found by and ok henning@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions