Hi,
Thisi is settings. Buffer size is 2048.
ByteBuffer.setUseDirectBuffers(false); ByteBuffer.setAllocator(new
SimpleByteBufferAllocator());
config.getFilterChain().addLast("executor", new ExecutorFilter());
config.getFilterChain().addLast(
"codec",
new ProtocolCodecFilter(new TextLineEncoder( new LineDelimiter("\n\r")),
new TextLineDecoder(Charset.forName("Cp1250"), LineDelimiter.AUTO)));
Zlaja
On Mon, Jun 7, 2010 at 11:13 PM, Emmanuel Lecharny <[email protected]>wrote:
> On 6/7/10 11:04 PM, Zlatko Josic wrote:
>
>> Hi,
>>
>> We have MINA based server and have problem in communication with a client.
>> We use protocolor similar to http, key=valeu&key=value...
>>
>> Sometimes on server we get message with additional character. For example
>> if
>> we have message com=rsA&tSn=123434
>> we got =com=rsA&tSn=123434 or com=rsA&tSn=1283434 or com=rsA=Sn=123434
>>
>> Could it be problem with MINA?
>>
>>
> Very unlikely.
>
> Remember that a message may be split in many small fragment and you will
> have to aggregate them before decoding. You may even receive more than one
> message in a ByteBuffer.
>
> Check your decoder.
>
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.nextury.com
>
>
>