You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Sebastian Wagner <se...@gmail.com> on 2009/09/14 10:21:39 UTC
how to set the writeBufferSize
hi,
I would like to increase the writeBufferSize in my MINA-Client.
Its an UDP Client similar to the one in the Tutorial (
http://mina.apache.org/udp-tutorial.html)
Just that the byte[] message that I try to send is bigger than the buffer
size.
I am using MINA-2.0 M6
How can increase the writeBufferSize.
I see in the API docs this Method:
http://mina.apache.org/report/trunk/apidocs/org/apache/mina/filter/stream/AbstractStreamWriteFilter.html#setWriteBufferSize%28int%29
but how do I get this Filter to my IoSession or
IoConnector-default-Session-Config?
Do I have to overwrite an existing Filter or how does it work?
Sorry but I cannot find any docu or mailing list entry to this problem which
is quite curieuse.
thanks,
sebastian
--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@gmail.com
Re: how to set the writeBufferSize
Posted by Sebastian Wagner <se...@gmail.com>.
thanks, ... the trick is
the tutorial uses a IoConnector connector = new NioDatagramConnector();
IoConnector.getSessionConfig() returns a IoSessionConfig => this Object has
no method setSendBufferSize
you have to use NioDatagramConnector connector = new NioDatagramConnector()
=> then you get the DatagramSessionConfig and are able to to the Buffer-size
modification.
thanks & cheers
sebastian
2009/9/14 Viktor Balazs <vi...@gmail.com>
> Hi,
>
> Try to use setReceiveBufferSize or setSendBufferSize in
> DatagramSessionConfig (
>
> http://mina.apache.org/report/trunk/apidocs/org/apache/mina/transport/socket/DatagramSessionConfig.html
> )
>
> Regards,
> CyB
>
> 2009/9/14 Sebastian Wagner <se...@gmail.com>:
> > hi,
> >
> >
> > I would like to increase the writeBufferSize in my MINA-Client.
> >
> > Its an UDP Client similar to the one in the Tutorial (
> > http://mina.apache.org/udp-tutorial.html)
> >
> > Just that the byte[] message that I try to send is bigger than the buffer
> > size.
> >
> > I am using MINA-2.0 M6
> > How can increase the writeBufferSize.
> >
> > I see in the API docs this Method:
> >
> http://mina.apache.org/report/trunk/apidocs/org/apache/mina/filter/stream/AbstractStreamWriteFilter.html#setWriteBufferSize%28int%29
> >
> > but how do I get this Filter to my IoSession or
> > IoConnector-default-Session-Config?
> >
> > Do I have to overwrite an existing Filter or how does it work?
> >
> > Sorry but I cannot find any docu or mailing list entry to this problem
> which
> > is quite curieuse.
> >
> > thanks,
> > sebastian
> >
> > --
> > Sebastian Wagner
> > http://www.webbase-design.de
> > http://openmeetings.googlecode.com
> > http://www.laszlo-forum.de
> > seba.wagner@gmail.com
> >
>
--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@gmail.com
Re: how to set the writeBufferSize
Posted by Viktor Balazs <vi...@gmail.com>.
Hi,
Try to use setReceiveBufferSize or setSendBufferSize in
DatagramSessionConfig (
http://mina.apache.org/report/trunk/apidocs/org/apache/mina/transport/socket/DatagramSessionConfig.html
)
Regards,
CyB
2009/9/14 Sebastian Wagner <se...@gmail.com>:
> hi,
>
>
> I would like to increase the writeBufferSize in my MINA-Client.
>
> Its an UDP Client similar to the one in the Tutorial (
> http://mina.apache.org/udp-tutorial.html)
>
> Just that the byte[] message that I try to send is bigger than the buffer
> size.
>
> I am using MINA-2.0 M6
> How can increase the writeBufferSize.
>
> I see in the API docs this Method:
> http://mina.apache.org/report/trunk/apidocs/org/apache/mina/filter/stream/AbstractStreamWriteFilter.html#setWriteBufferSize%28int%29
>
> but how do I get this Filter to my IoSession or
> IoConnector-default-Session-Config?
>
> Do I have to overwrite an existing Filter or how does it work?
>
> Sorry but I cannot find any docu or mailing list entry to this problem which
> is quite curieuse.
>
> thanks,
> sebastian
>
> --
> Sebastian Wagner
> http://www.webbase-design.de
> http://openmeetings.googlecode.com
> http://www.laszlo-forum.de
> seba.wagner@gmail.com
>