On Saturday 18 April 2009 14:34:54 [email protected] wrote: > Author: saces > Date: 2009-04-18 13:34:54 +0000 (Sat, 18 Apr 2009) > New Revision: 26960 > > Modified: > trunk/freenet/src/freenet/client/async/DefaultManifestPutter.java > Log: > may better container limits
Do you factor in 1K per file for the tar overheads?
>
> Modified: trunk/freenet/src/freenet/client/async/DefaultManifestPutter.java
> ===================================================================
> --- trunk/freenet/src/freenet/client/async/DefaultManifestPutter.java
2009-04-18 13:13:29 UTC (rev 26959)
> +++ trunk/freenet/src/freenet/client/async/DefaultManifestPutter.java
2009-04-18 13:34:54 UTC (rev 26960)
> @@ -61,10 +61,12 @@
> });
> }
>
> - public static final long DEFAULT_MAX_CONTAINERSIZE = (2038-64)*1024;
> + // the 'physical' limit for container size
> + public static final long DEFAULT_MAX_CONTAINERSIZE = 2048*1024;
> public static final long DEFAULT_MAX_CONTAINERITEMSIZE = 1024*1024;
> // a container > (MAX_CONTAINERSIZE-CONTAINERSIZE_SPARE) is treated
as 'full'
> - public static final long DEFAULT_CONTAINERSIZE_SPARE = 15*1024;
> + // this should prevent to big containers
> + public static final long DEFAULT_CONTAINERSIZE_SPARE = 196*1024;
>
> public DefaultManifestPutter(ClientCallback clientCallback,
HashMap<String, Object> manifestElements, short prioClass, FreenetURI target,
String defaultName, InsertContext ctx, boolean getCHKOnly,
> RequestClient clientContext, boolean earlyEncode) {
>
> _______________________________________________
> cvs mailing list
> [email protected]
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
>
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
