On Fri, Feb 09, 2007 at 01:09:16PM +0100, bbackde at googlemail.com wrote: > > > > It's a good idea. I've filed a bug for it. If you want to implement it > > yourself then assign it to yourself, otherwise I will get around to > > it... eventually... > > > > https://bugs.freenetproject.org/view.php?id=1086 > > We need another message to tell the node to delete the previously > written temp file in case the client is not on the same box, and > therefore the write test failed for the client. E.g. node and client > are on linux, client tells node to write to /tmp, and client can't > find the file in /tmp. > > So the request must be stateful, the node must remember what file was > written and must delete it after the client delete request. In the > case the client misses to send a delete, the node must delete the file > during JVM shutdown (File.deleteOnExit). > > Did I miss something?
No, looks good. Should probably be deleted on lost connection, not just on exiting the JVM. Make sure the node cannot overwrite existing files when you set the file creation options. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20070209/5566e842/attachment.pgp>