On Fri, Mar 07, 2003 at 03:09:36PM -0000, Dave Hooper wrote: > > > Note the point where I change the date to tomorrow and then switch it > > > back. After I restart freenet it never works again. > > > > Freenet uses various LRU lists and so on... and that's completely > > ignoring client issues like DBRs. I note that daylight savings time > > should not have any bearing on this, because freenet uses the time in > > GMT... I hope :) > > Obviously the freenet client should use the current date and time as the > target for a DBR (does a web browser put the current date and time in the > HTTP headers for a request? If it did we could maybe consider using that) > and currently the freenet node implementation will use its concept of date > and time for doing this. We do use the current time. The problem is that if it is a day in the past we will see yesterday's DBR update, and if it is a day in the future we probably won't see anything. > > BUT servers should really not rely on absolute time unless absolutely > necessary, and using absolute time to implement a LRU seems very wrong to > me. I'm no java expert, but is there no other way to do it? THE DATA STORE. We store the LRU in the accessed times of the files in the datastore (as well as in RAM). And it doesn't matter whether it is "absolute time" as long as it is monotonically increasing. What really stuffs us is if the clock is set back. > > d > > > _______________________________________________ > devl mailing list > devl at freenetproject.org > http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl >
-- Matthew Toseland toad at amphibian.dyndns.org/amphibian at users.sourceforge.net Full time freenet hacker. http://freenetproject.org/ Freenet Distribution Node (temporary) at http://80-192-4-23.cable.ubr09.na.blueyonder.co.uk:8889/VtxEdni0FJ4/ ICTHUS. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20030307/2f4e045b/attachment.pgp>
