On 1/22/12 1:23 PM, Robert Tomczyk wrote:
Hi,
Sorry for not being precise but i dont really know what can be wrong. Ok
then:
2012/1/22 Emmanuel Lecharny<[email protected]>
- first, which MINA version are you using ?
im using MINA 2.0.4
- are you sending the 3 messages in a row, or are you sending them as a
reply to three different messageReceived() vent ?
3 in a row as a reply to 1 messageReceived
- what filters do you have in your chain ?
connector.getFilterChain().addLast("Codec", new ProtocolCodecFilter(new
ClientCodecFactory()));
connector.getFilterChain().addLast("executor", new ExecutorFilter(new
UnorderedThreadPoolExecutor(10)));
same on server side added to acceptor(with ofc ServerCodecFactory())
Get rid of the executor. You are very likely not to need one. This is
most certainly the reason you have mixed messages.
FTR, an executor will execute each write in a different thread, so you
may have 3 writes done by three different threads.
If you think you need an executor, then at least, use an ordered one.
That will gie you the guarantee that the three messages will get sent by
one single thread, and in the correct order (ie, A then B then C)
- have you checked using a sniffer (like Wireshark) that the PDU are
correctly sent and are not fragmented ?
No i didnt and i will
First try to get rid of the executor, and see if it works better.
If you really need to use an executor, we can discuss further the reason
you need it, and then what are your options.
-- Regards, Cordialement, Emmanuel Lécharny www.iktek.com