If I've understood well, that impossibility is related to another
session's ByteBuffer,
but I'm using a single session.
I mean all my concurrent threads write on the same session object by
means of write() method.
does that put things in another way??
Thanks,
Patrizio
Emmanuel Lecharny wrote:
On Wed, Feb 18, 2009 at 2:49 PM, Patrizio Munzi
<[email protected]> wrote:
It works right with a single thread.
It looks like in multi-threads execution threads are stealing bytes from
each other.
If you use a OrderedThreadPoolExecutor, there is no way a thread can
steal some bytes from another session's ByteBuffer. There is obviously
something wrong in the way you handle those buffers.
At this point, without the code, it's a bit difficult to tell where
can be the problem.