To the best of my knowledge, the only BitArray transported is 31 bits.
I thought 128 was generous! The only thing increasing it will do is
let neighbor peers make us queue large packets, no?
--
Robert Hailey
On Feb 1, 2008, at 5:06 PM, toad at freenetproject.org wrote:
> Author: toad
> Date: 2008-02-01 23:06:25 +0000 (Fri, 01 Feb 2008)
> New Revision: 17466
>
> Modified:
> trunk/freenet/src/freenet/support/Serializer.java
> Log:
> Less aggressive size limit
>
> Modified: trunk/freenet/src/freenet/support/Serializer.java
> ===================================================================
> --- trunk/freenet/src/freenet/support/Serializer.java 2008-02-01
> 20:53:20 UTC (rev 17465)
> +++ trunk/freenet/src/freenet/support/Serializer.java 2008-02-01
> 23:06:25 UTC (rev 17466)
> @@ -42,7 +42,7 @@
> public class Serializer {
>
> public static final String VERSION = "$Id: Serializer.java,v 1.5
> 2005/09/15 18:16:04 amphibian Exp $";
> - public static final int MAX_BITARRAY_SIZE = 128;
> + public static final int MAX_BITARRAY_SIZE = 2048*8;
>
> public static List readListFromDataInputStream(Class elementType,
> DataInputStream dis) throws IOException {
> LinkedList ret = new LinkedList();
>