Skip to content

Commit

Permalink
mwiede#604 Fix possible rekeying timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
norrisjeremy committed Jul 23, 2024
1 parent b329352 commit a1f8b09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* [0.2.19](https://github.com/mwiede/jsch/releases/tag/jsch-0.2.19)
* Enforce DHGEX prime modulus bit length meets configured constraints.
* #604 Fix possible rekeying timeouts.
* [0.2.18](https://github.com/mwiede/jsch/releases/tag/jsch-0.2.18)
* Handle negated patterns according to ssh_config(5) by @bmiddaugh in https://github.com/mwiede/jsch/pull/565
* [0.2.17](https://github.com/mwiede/jsch/releases/tag/jsch-0.2.17)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/jcraft/jsch/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public class Session {

protected boolean daemon_thread = false;

private long kex_start_time = 0L;
private volatile long kex_start_time = 0L;

int max_auth_tries = 6;
int auth_failures = 0;
Expand Down Expand Up @@ -843,8 +843,8 @@ private void send_kexinit() throws Exception {
}
}

in_kex = true;
kex_start_time = System.currentTimeMillis();
in_kex = true;

// byte SSH_MSG_KEXINIT(20)
// byte[16] cookie (random bytes)
Expand Down

0 comments on commit a1f8b09

Please sign in to comment.