diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2012-01-17 12:10:57 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2012-09-23 16:08:35 -0700 |
commit | 3d598a64b4c1152a98f5ee4174bb6ceb76922ca6 (patch) | |
tree | 30852a530e85f6eef3f89043ab6fc84c01571af6 /paramiko/common.py | |
parent | c903245ed95291c278ed52a7bfcf17322b2b5d28 (diff) | |
download | paramiko-3d598a64b4c1152a98f5ee4174bb6ceb76922ca6.tar.gz |
Add IO sleep to agent forward communications.
Without this, use of agent forwarding causes
high CPU usage on some clients.
(cherry picked from commit 3030589aaafdba0a3b14183e0d03488580d21bf5)
Conflicts:
paramiko/agent.py
Diffstat (limited to 'paramiko/common.py')
-rw-r--r-- | paramiko/common.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/paramiko/common.py b/paramiko/common.py index 3323f0a4..25d5457f 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -124,3 +124,6 @@ INFO = logging.INFO WARNING = logging.WARNING ERROR = logging.ERROR CRITICAL = logging.CRITICAL + +# Common IO/select/etc sleep period, in seconds +io_sleep = 0.01 |