-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 09 February 2003 02:25 pm, Michael Schierl wrote:
> hi freenet developers,
>
> I have some questions regarding FCP:
>
> 1. RouteNotFound provides a field called Reason (iirc) that has some hex
> number in it. What does which number mean? (I'd like to know if the
> request left my node or not - i.e. if fproxy would have shown the red
> "check your internet connection" text).
>
> 2. When I insert a file as KSK and get a RouteNotFound, can I be sure
> that the file is not available on the net now? In other words, if I get
> RNF first and then KeyCollision at retry, can that KeyCollision be
> caused by the key already inserted in first step?

I'm fairly certain that RNF occurs before the data is actually uploaded.

> 3. When I insert a file that was not in Freenet before as KSK and get a
> KeyCollision, can I be sure that from whichever node I request the file
> I will not get the one I tried to insert? Especially, if I request the
> key from the same node that did the KeyCollision, do I get the file that
> collided with my insert? And if I request the key and get the file I
> tried to insert, can I be sure that the collision was caused by the fact
> that *this* file was already in Freenet?

When a collision occurs, the existing data is propagated back to the inserting 
node. If you find the file you were inserting, it was there. You can't be 
sure that there isn't some other data under the same KSK; that condition is 
reserved for CHKs.

> If anyone wants to know why i want to know all this: I plan to add a
> feature to FIW's nim inserter to advance to the next slot when there is
> a key collision. And I don't want to pollute nim slots unnecessary -
> i.e. if it's sure that my file is in a slot (collided with itself), i
> don't want to insert it into another slot.

Just request the collided key with HTL=1 after the collision. You'll get 
whatever it collided with unless the node has an unreasonably high turnover 
or tiny datastore.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+RtgZx533NjVSos4RAvWmAJ4yluDBLQGYnB58A3uUkhbPhU/T/gCgiVWd
bZi9j/jwinB6xioJXarDXPo=
=9reO
-----END PGP SIGNATURE-----

_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl

Reply via email to