Skip to content

Commit

Permalink
Reset the sequence numbers on Session disconnect to support reconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
mvegter authored Oct 21, 2023
1 parent b0f2080 commit e91a9a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/jcraft/jsch/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,10 @@ public void disconnect() {
}
io = null;
socket = null;
// Reset the incoming/outgoing sequence
seqi = 0;
seqo = 0;

// synchronized(jsch.pool){
// jsch.pool.removeElement(this);
// }
Expand Down

0 comments on commit e91a9a7

Please sign in to comment.