diff options
author | Grant Hutchins & Michael Schubert <pair+grant+mschubert@pivotallabs.com> | 2011-03-03 12:57:02 -0500 |
---|---|---|
committer | Grant Hutchins & Michael Schubert <pair+grant+mschubert@pivotallabs.com> | 2011-03-03 12:57:02 -0500 |
commit | a17c9bec704c229db017a0c94d4831dd04f28bcd (patch) | |
tree | fa34fb5d08cf97ea00e3084e5de4358f846a7e37 | |
parent | 793eeb372da3db405ce4494cb2ebabfc86c56190 (diff) | |
download | net-ssh-gateway-a17c9bec704c229db017a0c94d4831dd04f28bcd.tar.gz |
Decrease wait time within Net::SSH session loop. Longer times seem to trigger a standoff between OpenSSH and Net::SSH waiting for each other.
May be due to a bug in Net::SSH ultimately but this resolves the issue for now. Does slightly increase CPU usage.
-rw-r--r-- | lib/net/ssh/gateway.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/ssh/gateway.rb b/lib/net/ssh/gateway.rb index 83bf671..49be1b1 100644 --- a/lib/net/ssh/gateway.rb +++ b/lib/net/ssh/gateway.rb @@ -190,7 +190,7 @@ class Net::SSH::Gateway @thread = Thread.new do while @active @session_mutex.synchronize do - @session.process(0.1) + @session.process(0.001) end Thread.pass end |