We use mina-core-2.0.0-RC1.jar

Recently we incorporated mina-filter-compression-2.0.0-RC1.jar and I
observed a strange problem which didn't exist without using compression
filter.

Our client can talk to server for several minutes after which client
requests keep timeout. It seems server doesn't receive requests after some
point.

If someone can share troubleshooting tips, especially w.r.t. compression
filters, that would be great.

On Sun, Jan 17, 2010 at 7:41 AM, Emmanuel LŽcharny <[email protected]>wrote:

> Ted Yu a écrit :
>
>> Hi,
>> According to http://mina.apache.org/faq.html:
>> We recommend to switch the default buffer type to 'heap' by inserting the
>> following code before you start a server:
>>
>> ByteBuffer.setUseDirectBuffers(false);
>>
>> Should the above call should be inserted before calling
>> NioSocketAcceptor.bind() ?
>>
>> If not, which call should I insert the above code before ?
>>
>>
> I suppose you are using MINA 1.x (please, *please*, PLEASE, _always_
> mention the vesion you are using when posting a question !!!)
>
> You can tell MINA to use heap buffers before doing anything, as it's a
> static flag. So do it in the very first line of your program.
>
> In MINA 2.0, there is no need to care about this : the ByteBuffer allocator
> uses Heap buffer as a default (MINA 1.x was totally wrong to use
> DirectBuffer by default) .
>
>
>

Reply via email to