mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hazlewood <lhazlew...@apache.org>
Subject Re: Mina Proxy example - AbstractProxyIoHandler
Date Fri, 06 Nov 2009 17:26:02 GMT
Thanks Emmanuel and Julien.  Have a great weekend :)

Best,

Les

On Fri, Nov 6, 2009 at 11:25 AM, Julien Vermillard
<jvermillard@archean.fr> wrote:
> Le Fri, 30 Oct 2009 20:34:40 -0400,
> Les Hazlewood <lhazlewood@apache.org> a écrit :
>
>> Hi folks,
>>
>> In the AbstractProxyIoHandler here:
>>
>> http://mina.apache.org/report/trunk/xref/org/apache/mina/example/proxy/AbstractProxyIoHandler.html
>>
>> the messageReceived method creates a copy of of the incoming IoBuffer
>> and sends the copy to the paired Session.  Why is this necessary?  Can
>> you just send the incoming IoBuffer directly to the paired session (no
>> copy)?
>>
>> In my preliminary testing with an HTTP proxy, I've change the code to
>> *not* use the copy, and all seems fine. I just want to make sure this
>> is OK before I stick with it :)
>>
>> Thanks for the feedback!
>>
>> Cheers,
>>
>> Les
>
> Hi,
> I think it was mandatory when we was using DirectBuffer, now with Heap
> buffer I don't see the problem, just flip the buffer and send it back.
>
> Julien
>

Mime
View raw message