You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2017/09/12 16:10:48 UTC

[1/2] libcloud git commit: Decrease sleep delay which is used to prevent busy waiting in the paramiko client.

Repository: libcloud
Updated Branches:
  refs/heads/trunk 185039817 -> 59b44a0d1


Decrease sleep delay which is used to prevent busy waiting in the
paramiko client.

This should decrease run-time for deploy scripts which produce a lot of
output in incremental manner.


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

Branch: refs/heads/trunk
Commit: ba74c260d682d34b99336808c63c4ddaac4c8a18
Parents: 1850398
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Tue Sep 12 15:13:49 2017 +0200
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Tue Sep 12 15:13:49 2017 +0200

----------------------------------------------------------------------
 libcloud/compute/ssh.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ba74c260/libcloud/compute/ssh.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/ssh.py b/libcloud/compute/ssh.py
index c65aab2..0774943 100644
--- a/libcloud/compute/ssh.py
+++ b/libcloud/compute/ssh.py
@@ -202,8 +202,9 @@ class ParamikoSSHClient(BaseSSHClient):
     # Maximum number of bytes to read at once from a socket
     CHUNK_SIZE = 4096
 
-    # How long to sleep while waiting for command to finish
-    SLEEP_DELAY = 1.5
+    # How long to sleep while waiting for command to finish (to prevent busy
+    # waiting)
+    SLEEP_DELAY = 0.2
 
     def __init__(self, hostname, port=22, username='root', password=None,
                  key=None, key_files=None, key_material=None, timeout=None):


[2/2] libcloud git commit: Update changelog.

Posted by to...@apache.org.
Update changelog.


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

Branch: refs/heads/trunk
Commit: 59b44a0d1269be279bb7e0b876ac507f763fc5ac
Parents: ba74c26
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Tue Sep 12 15:16:17 2017 +0200
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Tue Sep 12 15:16:17 2017 +0200

----------------------------------------------------------------------
 CHANGES.rst | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/59b44a0d/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 75dbf52..1df56dd 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -15,6 +15,13 @@ Compute
   [GITHUB-1099]
   (@xofer)
 
+- Decrease sleep delay (from 1.5 to 0.2 seconds) inside paramiko client which
+  is used to prevent busy waiting while waiting for data on the channel.
+
+  This should cause deploy scripts which produce a lot of output in incremental
+  manner to finish faster.
+  [Tomaz Muraus]
+
 Changes in Apache Libcloud 2.2.0
 --------------------------------