Skip to content
Snippets Groups Projects
Commit e556d485 authored by pm_cz's avatar pm_cz
Browse files

Increase buffer size and add it as class constant

parent 946e7491
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,8 @@ public class ScpClient implements Closeable {
private static final long TIMEOUT_BETWEEN_CONNECTION_ATTEMPTS = 500;
private static final int BUFFER_SIZE = 4 * 1024 * 1024 ; //4 MB
private String hostName;
private String username;
private final JSch jsch = new JSch();
......@@ -372,7 +374,7 @@ public class ScpClient implements Closeable {
}
private int getBufferSize() {
return 1024 * 1024;
return BUFFER_SIZE;
}
private Session getConnectedSession() throws JSchException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment