Hi, all, I found a weird problem in Mina here, your insights are highly appreciated.
[1] When I reply with a ByteBuffer from an socket handler to a connector handler with a ByteBuffer, it went through just fine no matter what size the data is. (several Kbytes). [2] When I use the following, its size is always capped by 1024 bytes, and there's no 2nd transmission. The remaining data is just not sent. Sender: MyPacket packet = new MyPacket(); // ... fill data into the packet, it is externalizable ByteBuffer buf = ByteBuffer.allocate(8192); buf.putObject(packet); buf.flip(); session.write(buf); Receiver: only the initial 1024 bytes are recved, the rest is lost, no 2nd transmission ! --- Thanks for comments
