Increase default chunk size to 4096 bytes so we decrease the number of read calls in an average case.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/e7b80802 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/e7b80802 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/e7b80802 Branch: refs/heads/trunk Commit: e7b8080207fd9f2a2c192d1a3400517f777ffd60 Parents: 1a65809 Author: Tomaz Muraus <[email protected]> Authored: Sun Jan 24 21:18:39 2016 +0100 Committer: Tomaz Muraus <[email protected]> Committed: Sun Jan 24 21:18:39 2016 +0100 ---------------------------------------------------------------------- libcloud/compute/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/e7b80802/libcloud/compute/ssh.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/ssh.py b/libcloud/compute/ssh.py index b0ccffd..5013835 100644 --- a/libcloud/compute/ssh.py +++ b/libcloud/compute/ssh.py @@ -200,7 +200,7 @@ class ParamikoSSHClient(BaseSSHClient): """ # Maximum number of bytes to read at once from a socket - CHUNK_SIZE = 1024 + CHUNK_SIZE = 4096 # How long to sleep while waiting for command to finish SLEEP_DELAY = 1.5
