Return-Path: Delivered-To: apmail-mina-dev-archive@www.apache.org Received: (qmail 47604 invoked from network); 15 Dec 2009 14:56:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Dec 2009 14:56:30 -0000 Received: (qmail 58745 invoked by uid 500); 15 Dec 2009 14:56:29 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 58709 invoked by uid 500); 15 Dec 2009 14:56:28 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 58699 invoked by uid 99); 15 Dec 2009 14:56:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 14:56:28 +0000 X-ASF-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sop@google.com designates 216.239.33.17 as permitted sender) Received: from [216.239.33.17] (HELO smtp-out.google.com) (216.239.33.17) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 14:56:26 +0000 Received: from kpbe17.cbf.corp.google.com (kpbe17.cbf.corp.google.com [172.25.105.81]) by smtp-out.google.com with ESMTP id nBFEu4QZ009982 for ; Tue, 15 Dec 2009 14:56:05 GMT DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1260888965; bh=jjPVKgd7+zbzLGw8oX+W7yKWxcI=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=qVc10a4csjzpo/vL6zfSu0JJ7Qv2U2aVBefdkxVuIWcWyxLgqvwjjAFnxjiFOotic hxyntEMFYEZiMoxp5UQdQ== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=date:from:to:subject:message-id:references:mime-version: content-type:content-disposition:content-transfer-encoding:in-reply-to: user-agent:x-system-of-record; b=tlvqrihV4obcxIpOtDKTuz5nk5ED7bUO7Hys+g6cMBwAxygieoIenZCVwdc8OTSkB Ur8sU7eTJZRaRiHd0/ZyA== Received: from yxe40 (yxe40.prod.google.com [10.190.2.40]) by kpbe17.cbf.corp.google.com with ESMTP id nBFEu34E025033 for ; Tue, 15 Dec 2009 06:56:03 -0800 Received: by yxe40 with SMTP id 40so3982838yxe.28 for ; Tue, 15 Dec 2009 06:56:02 -0800 (PST) Received: by 10.150.47.12 with SMTP id u12mr1505113ybu.332.1260888962746; Tue, 15 Dec 2009 06:56:02 -0800 (PST) Received: from localhost (yellowpostit.mtv.corp.google.com [172.18.104.34]) by mx.google.com with ESMTPS id 4sm1966852ywg.13.2009.12.15.06.56.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Dec 2009 06:56:02 -0800 (PST) Date: Tue, 15 Dec 2009 06:56:00 -0800 From: Shawn Pearce To: dev@mina.apache.org Subject: Re: svn commit: r890631 - in /mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd: client/auth/ client/channel/ client/kex/ client/session/ common/ common/channel/ common/session/ server/auth/ server/channel/ server/session/ Message-ID: <20091215145600.GJ16591@google.com> References: <20091215035633.5C97A23889ED@eris.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-System-Of-Record: true Guillaume Nodet wrote: > I wonder if we should add back the createBuffer method with a single > argument that would call createBuffer(cmd, 0) for readability... I thought about doing that when I wrote the change... but since Session is an interface I wasn't too thrilled about exposing two different createBuffer methods in it. Its easy enough for me to change though, I can back out most of the patch and add the createBuffer(int) signature if that's what you'd prefer. > On Tue, Dec 15, 2009 at 04:56, wrote: > > Author: spearce > > Date: Tue Dec 15 03:56:32 2009 > > New Revision: 890631 ... > > Unfortunately most uses of createBuffer don't care about the size > > of the buffer, as they are one-shot requests which are often within > > the default size of 512 bytes. �Pass in 0 for these and allow them > > to use the default 512 byte size.