You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Jay Doane (JIRA)" <ji...@apache.org> on 2012/05/16 20:15:07 UTC

[dev] [jira] [Updated] (LIBCLOUD-197) Add time.sleep(wait_period) to _ssh_client_connect()

     [ https://issues.apache.org/jira/browse/LIBCLOUD-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jay Doane updated LIBCLOUD-197:
-------------------------------

    Attachment: ssh-client-connect-wait-period.diff
    
> Add time.sleep(wait_period) to _ssh_client_connect()
> ----------------------------------------------------
>
>                 Key: LIBCLOUD-197
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-197
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute
>            Reporter: Jay Doane
>            Priority: Minor
>         Attachments: ssh-client-connect-wait-period.diff
>
>
> In the event that the client cannot connect, it will run in a tight loop, needlessly using CPU cycles until it finally connects or times out.
> This patch puts a wait period in the loop, similar to what is done in _wait_until_running(). It also exposes a wait_period parameter in the function arguments.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira