-
Notifications
You must be signed in to change notification settings - Fork 386
[GH-725] Added commandTimeoutMillis in executeRemoteCommand #726
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
Conversation
tomaswolf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a test, and must be done in a way that is backwards-compatible.
sshd-core/src/main/java/org/apache/sshd/client/session/ClientSession.java
Outdated
Show resolved
Hide resolved
sshd-core/src/main/java/org/apache/sshd/client/session/ClientSession.java
Outdated
Show resolved
Hide resolved
sshd-core/src/main/java/org/apache/sshd/client/session/ClientSession.java
Outdated
Show resolved
Hide resolved
9dc97b6 to
7570eb5
Compare
f564362 to
659d2ee
Compare
|
Hi @tomaswolf i have addressed all the comments provided, Can you please check this now? |
|
Hi all, I think we should stop using ints and longs to express durations ASAP. Java has Duration class, let's use it. If a duration ends up as int seconds or long milliseconds or whatever scale a low level API in Java needs, that's fine, I just feel there is still room for confusion using primitives. A Duration also offers the best precision on Java 9 and up (nanosecond). |
|
I've refactored the relevant code to use java.time.Duration instead of int/long for expressing timeouts. This should help improve clarity and avoid unit-related confusion going forward. Would appreciate it if you could take a look and let me know if anything needs adjusting. Thanks! |
sshd-core/src/main/java/org/apache/sshd/client/session/ClientSession.java
Outdated
Show resolved
Hide resolved
Added commandTimeoutMillis in executeRemoteCommand
|
Addressed all the comments, can you please check this and provide the approvals? Thanks. |
|
Thank you! |
|
@tomaswolf @garydgregory @osi @knalli When can we expect this to get released? |
Added commandTimeoutMillis in executeRemoteCommand
Implemets #725