-
Notifications
You must be signed in to change notification settings - Fork 88
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
How to set retries and timeouts using SSHByPassword #44
Comments
I would like to request that timeouts and retries be configurable |
@mherb63 where did you get it? where this code is taken from? you're expecting us to guess? :) |
Its from your SSHByPassword class public final class SSHByPassword extends AbstractSSHShell { /** * User password. */ private final transient String password; /** * Constructor. * @param adr IP address * @param prt Port of server * @param user Login * @param passwd Password * @throws UnknownHostException If fails * @checkstyle ParameterNumberCheck (6 lines) */ public SSHByPassword(final String adr, final int prt, final String user, final String passwd) throws UnknownHostException { super(adr, prt, user); this.password = passwd; } // @checkstyle ProtectedMethodInFinalClassCheck (10 lines) @Override @RetryOnFailure( attempts = Tv.SEVEN, delay = 1, unit = TimeUnit.MINUTES, verbose = false, randomize = true, types = IOException.class ) protected Session session() throws IOException { |
Probably related discussion: https://disqus.com/by/disqus_fvTXDMDM14/ |
yes, I posted that. I'm just looking to control the timeouts:
|
Guess this one is dead...oh well. Its been a month. |
A feature to define a timeout would be great. |
Thank you for this concise tool, but how do I override these:
The text was updated successfully, but these errors were encountered: