You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Willem.Jiang" <wi...@gmail.com> on 2011/01/31 12:50:08 UTC

Re: How to set receiveBufferSizePredictor option in Camel-netty udp consumer server?

Hi,

After checking the code, I didn't find a way to receiveBufferSizePredictor
option either.
Can you create a JIRA and submit a test case with it? Then we will dig the
issue later.

Willem
-- 
View this message in context: http://camel.465427.n5.nabble.com/How-to-set-receiveBufferSizePredictor-option-in-Camel-netty-udp-consumer-server-tp3364136p3364338.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to set receiveBufferSizePredictor option in Camel-netty udp consumer server?

Posted by geemang <ma...@geefamilyusa.com>.
Done!  https://issues.apache.org/jira/browse/CAMEL-4737

This is my first patch hopefully I did it correctly. 

--
View this message in context: http://camel.465427.n5.nabble.com/How-to-set-receiveBufferSizePredictor-option-in-Camel-netty-udp-consumer-server-tp3364136p5043162.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to set receiveBufferSizePredictor option in Camel-netty udp consumer server?

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Dec 2, 2011 at 2:27 AM, geemang <ma...@geefamilyusa.com> wrote:
> I did a little experiment by adding
>
>   private void initializeUDPServerSocketCommunicationLayer() throws
> Exception {
> ...
>
> connectionlessServerBootstrap.setOption("receiveBufferSizePredictorFactory",
> new FixedReceiveBufferSizePredictorFactory(1024));
> ...
> }
> to the NettyConsumer.java class
>
> Which does the trick.   Can we request a URI for this???
>

Feel free to create a JIRA ticket and submit a patch.
You know we love contributions.


>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-set-receiveBufferSizePredictor-option-in-Camel-netty-udp-consumer-server-tp3364136p5040377.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: How to set receiveBufferSizePredictor option in Camel-netty udp consumer server?

Posted by geemang <ma...@geefamilyusa.com>.
I did a little experiment by adding

   private void initializeUDPServerSocketCommunicationLayer() throws
Exception {
...

connectionlessServerBootstrap.setOption("receiveBufferSizePredictorFactory",
new FixedReceiveBufferSizePredictorFactory(1024));
...
}
to the NettyConsumer.java class

Which does the trick.   Can we request a URI for this???



 

--
View this message in context: http://camel.465427.n5.nabble.com/How-to-set-receiveBufferSizePredictor-option-in-Camel-netty-udp-consumer-server-tp3364136p5040377.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to set receiveBufferSizePredictor option in Camel-netty udp consumer server?

Posted by geemang <ma...@geefamilyusa.com>.
I'm having the same problem, trying to receive messages that are over 768 in
size.
I found an article:
http://massapi.com/class/org/jboss/netty/channel/socket/nio/NioDatagramChannelFactory.java.html
that shows the setting I believe we need. 

Also I believe there is a ticket open for this:
https://issues.apache.org/jira/browse/CAMEL-3607

Any ideas???

--
View this message in context: http://camel.465427.n5.nabble.com/How-to-set-receiveBufferSizePredictor-option-in-Camel-netty-udp-consumer-server-tp3364136p5040293.html
Sent from the Camel - Users mailing list archive at Nabble.com.