Re: How to properly synchronize external code with MINA

2018-05-22 Thread rexxar
Hi,Emmanuel Thank you very much for your Explanation and Suggest。But I still have doubts about this : the IoBuffer.getHexDump() method do move the position while dumping the content,but it recover it finally。It seems no other thread will operate the IoBuffer during this period,right? Can a

Re: How to properly synchronize external code with MINA

2018-05-21 Thread rexxar
Hi, here is the Implement of encode" @Override public void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception { IoBuffer buf = IoBuffer.allocate(100); buf.setAutoExpand(true); NetMessage msg = (NetMessage) message;

Re: How to properly synchronize external code with MINA

2018-05-21 Thread rexxar
hi pete: I still come across the same IoBuffer "mark" problem with mina2.0.16 。It happened occasionally when I add a log to dump(use getHexDump()) the iobuffer in the encoder fliter 。 Have you solved this problem since this problem was put forward in 2008? Have you received other cases with th