-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wait for new packets on the agent socket after the handler is invoked… #267
Conversation
Hey @pfy, thanks for the fix! This looks correct to me on its face but lemme test it a bit to make sure it doesn't break any other cases. |
Also, any chance you have a test script for this you could share? |
Hi @maxgoedjen, require 'net/ssh'
Net::SSH.start('github.com','git',:verbose => :debug) do |ssh|
output = ssh.exec!("hostname")
puts output
end This fails without the mr and works with the MR. |
Fantastic thanks 🙏 |
@maxgoedjen how can i help you to get this pr merged ? what is still missing ? |
@pfy sorry nothing, just slipped my mind. Giving it a test now. |
@pfy tested it out with a simple SSH command and it looks as though it may cause an infinite loop. Can you take a look? Screen.Recording.2021-11-30.at.9.06.43.PM.mov |
I think this is working: #270 |
@maxgoedjen this PR works for me. How can I help you to get it merged ? |
@pfy sorry this kinda fell off my radar post-vacation. It's looking good in my testing, I'll create a test build that I'll run for a while (would appreciate if you could test it out for a while until it's released as well). Thanks again for fixing this :) |
@pfy I think you'll need to update this with changes from the base, but should be all good to go then. |
ok, i will do that, thanks @maxgoedjen |
wait for new data on the socket after the handler is called.
ruby net::ssh keeps the agent connection open, but the secretive agent closes the connection :(
this fixes #244