commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <>
Subject [jira] [Commented] (VFS-440) [SFTP] Stream (e.g. netcat) proxy for Sftp file system (aka ProxyCommand)
Date Mon, 29 Oct 2012 03:13:17 GMT


Gary Gregory commented on VFS-440:

My "mvn clean test" loop has iterated 47 times without a hang with the v8 patch.

The SFTP tests always do not clean up perfectly with output like:

Running org.apache.commons.vfs2.provider.sftp.test.SftpProviderTestCase
created threads still running:
#1: main        pool-12-thread-1        not_a_daemon    class java.util.concurrent.ThreadPoolExecutor$Worker
#2: main        pool-11-thread-1        not_a_daemon    class java.util.concurrent.ThreadPoolExecutor$Worker
#3: main        pool-12-thread-2        not_a_daemon    class java.util.concurrent.ThreadPoolExecutor$Worker
#4: main        pool-12-thread-3        not_a_daemon    class java.util.concurrent.ThreadPoolExecutor$Worker
#5: main        pool-12-thread-4        not_a_daemon    class java.util.concurrent.ThreadPoolExecutor$Worker

I will commit based no hang and other the confidence expresed in other comments.
> [SFTP] Stream (e.g. netcat) proxy for Sftp file system (aka ProxyCommand)
> -------------------------------------------------------------------------
>                 Key: VFS-440
>                 URL:
>             Project: Commons VFS
>          Issue Type: Improvement
>            Reporter: Benjamin Piwowarski
>            Priority: Minor
>              Labels: proxy, sftp
>         Attachments: sftp-stream-proxy.diff, sftp-stream-proxy-v2.diff, sftp-stream-proxy-v3.diff,
sftp-stream-proxy-v4.diff, sftp-stream-proxy-v5.diff, sftp-stream-proxy-v6.diff, sftp-stream-proxy-v7-bis.diff,
sftp-stream-proxy-v7.diff, sftp-stream-proxy-v8.diff
> What I propose is to add the possibility to connect to a remote SSH server through an
SSH connection stream (instead of an HTTP or SOCKS proxy). See for instance
> for a use case.
> This simulates a ProxyCommand where the command is run on a SSH host.
> The patch also contains a test for the new functionality. 
> Example of use (with the netcat command nc -q 0 HOSTNAME PORT)
> {code:java}
> builder.setProxyType(opts, SftpFileSystemConfigBuilder.PROXY_STREAM);
> builder.setProxyCommand(opts, SftpStreamProxy.NETCAT_COMMAND);
> builder.setProxyHost(opts, "");
> builder.setProxyPort(opts, 22);
> builder.setProxyOptions(opts, proxyOptions);
> {code}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message