Thanks for the confirmation Trustin.
I will upgrade to 1.x as soon as I find a few days of time :-)

Maarten

On 11/23/06, Trustin Lee <[EMAIL PROTECTED]> wrote:

On 11/22/06, Maarten Bosteels <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am debugging an application that is using mina 0.8.1
> and I would like some confirmation about ProtocolDecoder.decode


Please upgrade to 0.8.4 or 1.0.0.  0.8.4 is the last release in 0.8 branch
and will not be supported officially.

Is it guaranteed that no other threads will access the given ByteBuffer
> during the execution of the ProtocolDecoder.decode ?


Yes, unless you did something weird in your customized filter.

In other words, will this always work:
>
> void decode( ProtocolSession session, ByteBuffer
> in,  ProtocolDecoderOutput
> out ) throws ProtocolViolationException;
> {
>     int r1 = in.remaining();
>     Thread.sleep(50000);
>     int r2 = in.remaining();
>     assert (r1 ==  r2);
> }


Yes. :)

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6


Reply via email to