Decrease wait time within Net::SSH session loop. Longer times seem to trigger a standoff between OpenSSH and Net::SSH waiting for each other. 
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.
net-ssh/net-ssh-gateway