Increasing the buffer size when receiving messages

Ankush Bhatiya ankushb at gmail.com
Wed Aug 11 09:17:45 EDT 2010


Hi,

Can someone please answer this question, I am getting datagram packets of
length upto 1000 bytes but netty is reading atmost 768 bytes from each
packet.  Although I have set the option
bootstrap.setOption("receiveBufferSizePredictor", new
FixedReceiveBufferSizePredictor(1000));

but seems like it is not working. Any ideas?

Ankush

On Fri, Aug 6, 2010 at 6:02 PM, christoforever <christoforever at gmail.com>wrote:

>
> I've been playing around with netty for only a few days so forgive me if my
> question sounds noobish or ignorant ... I'm trying to implement a server of
> sorts which will receive a variable amount of data ( all of it being over
> the standard 1024 byte array size ). I've looked around a bit and nothing
> has stuck out at me ... but how can I increase the byte buffer array size
> of
> the ChannelBuffer to accept variable amounts or at the very least a much
> larger amount than 1024. Thanks.
> --
> View this message in context:
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Increasing-the-buffer-size-when-receiving-messages-tp5382383p5382383.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100811/fe119f46/attachment-0001.html 


More information about the netty-users mailing list