Return-Path: Delivered-To: apmail-mina-users-archive@www.apache.org Received: (qmail 89616 invoked from network); 6 Nov 2009 17:26:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 17:26:32 -0000 Received: (qmail 39483 invoked by uid 500); 6 Nov 2009 17:26:31 -0000 Delivered-To: apmail-mina-users-archive@mina.apache.org Received: (qmail 39447 invoked by uid 500); 6 Nov 2009 17:26:31 -0000 Mailing-List: contact users-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@mina.apache.org Delivered-To: mailing list users@mina.apache.org Received: (qmail 39436 invoked by uid 99); 6 Nov 2009 17:26:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 17:26:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.85.223.188] (HELO mail-iw0-f188.google.com) (209.85.223.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 17:26:23 +0000 Received: by iwn26 with SMTP id 26so933342iwn.5 for ; Fri, 06 Nov 2009 09:26:02 -0800 (PST) MIME-Version: 1.0 Sender: les.hazlewood@anjinllc.com Received: by 10.231.123.41 with SMTP id n41mr490330ibr.46.1257528362138; Fri, 06 Nov 2009 09:26:02 -0800 (PST) In-Reply-To: <20091106172516.672de8b1@jvermillard-portable> References: <44b57a610910301734v26cc9520q76848a89ab9390a5@mail.gmail.com> <20091106172516.672de8b1@jvermillard-portable> Date: Fri, 6 Nov 2009 12:26:02 -0500 X-Google-Sender-Auth: dcdfcd5c69a96514 Message-ID: <44b57a610911060926w5c9bce4du4b25f0688647590c@mail.gmail.com> Subject: Re: Mina Proxy example - AbstractProxyIoHandler From: Les Hazlewood To: users@mina.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Thanks Emmanuel and Julien. Have a great weekend :) Best, Les On Fri, Nov 6, 2009 at 11:25 AM, Julien Vermillard wrote: > Le Fri, 30 Oct 2009 20:34:40 -0400, > Les Hazlewood a =C3=A9crit : > >> Hi folks, >> >> In the AbstractProxyIoHandler here: >> >> http://mina.apache.org/report/trunk/xref/org/apache/mina/example/proxy/A= bstractProxyIoHandler.html >> >> the messageReceived method creates a copy of of the incoming IoBuffer >> and sends the copy to the paired Session. =C2=A0Why is this necessary? = =C2=A0Can >> 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 >