Both in connector and acceptor: connector.getSessionConfig().setReceiveBufferSize(minReceiveBufferSize); (the same for acceptor)
2012/9/12 Emmanuel Lécharny <elecha...@gmail.com>: > Le 9/12/12 4:39 PM, Antonio Rodriges a écrit : > >> Emmanuel, >> >> Below the "size" equals to the expected message size. "Remain" is the >> size of the buffer when the decoder is invoked. "size" is the same >> because we are waiting for the buffer size to be equal to it before >> decoding it. Thus, we have 68 "message_received". The buffer increases >> every time (but the pattern is not obvious). We use your >> ObjectSerializationDecoder but added statistics to it you see below. >> The buffer is set to 65535 at the program start and the Mina >> initialization code is rather straightforward taken from the tutorial >> on your site. > > When you say "The buffer is set to 65535", can you be a bit more specific : > where do you set this size ? Are you using the > IoSession.setReceiveBufferSize() method ? > > > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com >