"SiliconZealot" <siliconzealot at attbi.com> writes:

> Hello,
>     I am trying to insert a 0.4 DBR freesite with exactly 300 total
> files-(which was the limit for 0.3 Freeweb/Freenet.)
> 
> I am using Freeweb 0.1.5 (latest version on website).
> 
> Freeweb gives me the following error:
> ezFCPlib: URIerror: Reason=length cannot exceed 32768 bytes
> 
> My question is: Is this a limitation of the 0.4 Freenet Protocol, or of the
> Freeweb program?

Freenet (kinda arbitrarily) limits all non CHK keys to 32K.
> If this is something that can't be worked around, then how would I calculate
> the maximum number of files my DBR site can contain, other than trial +
> error?    = -)

1) Insert your freesite as multiple SSKs.  i.e. have your main SSK
   contain redirects to other SSKs (or CHKs) with the redirects to all
   the files you want to share.

2) have the redirect chain be SSK --(DBR)-> SSK --(Redir)-> CHK
--(Mapfile)-> Content, so that your big mapfile of all the named
redirects is in a CHK, and can be more than 32K.

To calculate the number of files a 32K DBR can contain, you just need
to work out how many bytes each file takes up.  The metadata format is
pretty simple, with a normal CHK redirect looking like this:

    Document
    Name=doc1
    Redirect.Target=CHK at aabbccddee1
    EndPart

Just count up the bytes in that and divide into 32K to find out how many can 
fit.

Thelema
-- 
E-mail: thelema314 at bigfoot.com                        Raabu and Piisu
GPG 1024D/36352AAB fpr:756D F615 B4F3 BFFC 02C7  84B7 D8D7 6ECE 3635 2AAB

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to