maybe you can try this decoderTextLineDecoder
good luck.

Original Message
Sender:Dhananjay [email protected]
Recipient:[email protected][email protected]
Date:Wednesday, Jan 9, 2019 21:08
Subject:Query related to mina library reading logic


Hello, We are using mina library to receive messages from client and then doing 
the business logic on it. client reading lines from a file and send each line 
after few seconds (like 20 seconds) interval, lines having length of either 670 
bytes or 240 bytes and at server end we are expecting that we should receive 
record separately (each line of a file is a should be treated as a separate 
message in the server logic) but we noticed sometime mina is joining two lines 
and sometime it is dividing one line into 2 lines. How can we avoid above? We 
are setting the read buffer size of 2KB while setting the mina acceptor 
session. I tried to have a look in mina code and seems there is some logic of 
fragmentation (I am not sure I am on right way), if I am right then how to make 
it false? Regards, Dhananjay 
============================================================================================================================
 Disclaimer: This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html 
">http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html 
">http://tim.techmahindra.com/tim/disclaimer.html internally within 
TechMahindra. 
============================================================================================================================

Reply via email to