Data and Insert requests are routed the same way, and when an Insert finds
the data it returns it like the DataRequest would - so in fact it is
making a retrieval attempt just by letting the InsertRequest live.
In other words, making the insert go ahead if the retrieval failed is
exactly identical to doing nothing.
On Fri, Dec 29, 2000 at 03:51:33PM -0800, Aaron Voisine wrote:
> Should a retrieval attempt be made for the referenced document
> rather than simply ignoring the refrence? It seems this would
> reduce the likelyhood of undetected collisions at the edges of
> the network where the node containing the reference might be
> the only node that can access the document. The code appears
> to do this already, so would it be better to cause the insert to fail
> only if the data request succeeds?
>
> I just volunteered yesterday, so If I have no clue what I'm
> talking about, I appoligize in advance.
>
> l8r
> Aaron
>
> On Fri, Dec 29, 2000 at 17:28:02 +0100, Oskar Sandberg wrote:
> > It's trivial. Simply do nothing in the refFound() method of
> > InsertRequest.java.
>
> > On Fri, Dec 29, 2000 at 12:18:31AM -0800, Ian Clarke wrote:
> >> Anyone fancy fixing insert collisions so that they only fail if the
> data is
> >> found (they currently also fail if a reference is found, meaning that
> even
> >> after some data has fallen out of freenet, it cannot up updated until
> the
> >> references have fallen out too). Should be pretty simple and a good
> >> introduction to the Freenet messaging core. The stuff you need to
> understand
> >> and modify is in Freenet.message.* (take a look at InsertData.java
> and its
> >> superclass).
> >>
> >> Ian.
>
>
> _______________________________________________
> Freenet-dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/freenet-dev
--
'DeCSS would be fine. Where is it?'
'Here,' Montag touched his head.
'Ah,' Granger smiled and nodded.
Oskar Sandberg
[EMAIL PROTECTED]
_______________________________________________
Freenet-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/freenet-dev