Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D054517C36 for ; Tue, 11 Nov 2014 14:25:17 +0000 (UTC) Received: (qmail 5514 invoked by uid 500); 11 Nov 2014 14:25:17 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 5387 invoked by uid 500); 11 Nov 2014 14:25:17 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 5376 invoked by uid 99); 11 Nov 2014 14:25:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2014 14:25:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2014 14:24:50 +0000 Received: by mail-ob0-f170.google.com with SMTP id nt9so8119971obb.29 for ; Tue, 11 Nov 2014 06:24:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=J9LlLKs0MstvxxbtgNPrsVNGWYAo2c7bCb29XtdDqB0=; b=EIHT/SV966cYLE5K6DjjNhTISjF4NWa9VvcqLgmjiAafbRzk/DIp8NkSHDJDox3kto fW35bdcxXFacrmsA0WTBCceMIhV/lOhrAo6QBqSOwUbNiDfuQqwD/XevWEM0BVEr9A99 RWLyfGXxAIUDvARsgANNxq4ARVXo/mAnMbvp3OclJr7qQPD6xnTAguUWIVI8mWr2u/Dn ROq62ePbUCNzY0wD5m3tDt47P7OSX+Vq3d52O/eP+ZwwG1vuhv7K1o5BmJfay1d1s779 h1Zh6DL0OBDkJxjYMoBf7ZGgdx8MuE8smrHnj+DIWPiH0N4FNGDzUS57IHxSGZLIPrXF wj/A== X-Gm-Message-State: ALoCoQkJnJv0v7+d5q3sgVOrSIDlkD+gheW0bbclmsLTpI2XxWksKrJlbOzQXPsczx80GbMOE1t2 MIME-Version: 1.0 X-Received: by 10.182.79.10 with SMTP id f10mr33355951obx.4.1415715888989; Tue, 11 Nov 2014 06:24:48 -0800 (PST) Received: by 10.76.171.66 with HTTP; Tue, 11 Nov 2014 06:24:48 -0800 (PST) Date: Tue, 11 Nov 2014 16:24:48 +0200 Message-ID: Subject: (VFS) underlying usage of Jsch Sessions/Channels From: Israel Malachi To: dev@commons.apache.org Content-Type: multipart/alternative; boundary=047d7b2e4014aa9f190507960a15 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e4014aa9f190507960a15 Content-Type: text/plain; charset=UTF-8 Hello all Please consider the following code: FileSystemManager fsManager = VFS.getManager(); FileObject sftpDir = fsManager.resolveFile("sftp://username:password@host/pub/downloads/"); FileObject child1 = sftpDir.getChild("child1.data"); FileObject child2 = sftpDir.getChild("child2.data"); InputStream s1 = child1.getContent().getInputStream(); InputStream s2 = child2.getContent().getInputStream(); On the Jsch underlying level, were two separated sessions created, or one session and two channels? --047d7b2e4014aa9f190507960a15--