Repository: ant
Updated Branches:
  refs/heads/master 5ebe69330 -> 1ee66cbe7


increase buffer size to improve transfer speed

1024 byte buffer size is insufficient for transfering large files over faster 
(> 100Mbit) networks. We are transfering files tens or hundreds MB in size and 
transfer speed was 1MB/s. After increasing the buffer size too 100KB we are 
getting transfer speeds up to 60MB/s. Please consider increasing the 
BUFFER_SIZE in the next Ant release. Thanks, Peter

Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/e145abe0
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/e145abe0
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/e145abe0

Branch: refs/heads/master
Commit: e145abe054a01e45f56b82a97638e9357e05648e
Parents: f22352a
Author: pkures <[email protected]>
Authored: Wed Apr 22 13:04:14 2015 +0200
Committer: pkures <[email protected]>
Committed: Wed Apr 22 13:04:14 2015 +0200

----------------------------------------------------------------------
 .../org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/e145abe0/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
----------------------------------------------------------------------
diff --git 
a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java 
b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
index 44b058d..b6d4737 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
@@ -42,7 +42,7 @@ public class ScpFromMessage extends AbstractSshMessage {
 
     private static final int HUNDRED_KILOBYTES = 102400;
     private static final byte LINE_FEED = 0x0a;
-    private static final int BUFFER_SIZE = 1024;
+    private static final int BUFFER_SIZE = 100*1024;
 
     private String remoteFile;
     private File localFile;

Reply via email to