diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2020-08-31 21:22:26 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2020-09-05 15:24:20 -0400 |
commit | d9b0601d3ace47e97acde83e28f11557e4929fb4 (patch) | |
tree | e8aa2952801c12016f74a63ca3159915b7f462c5 /org.eclipse.jgit.ssh.apache | |
parent | d5d8b7a8ba73d7b117953670b7e293fb441091bd (diff) | |
download | jgit-d9b0601d3ace47e97acde83e28f11557e4929fb4.tar.gz jgit-d9b0601d3ace47e97acde83e28f11557e4929fb4.zip |
SshdSession: close channel gracefully
Close the channel gracefully to give the server a chance to clean up
properly on its side.
Bug: 565854
Change-Id: Iedda5af3b97c8321f08f7ce854274cbb30e401de
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.ssh.apache')
-rw-r--r-- | org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java index 7ea7bd1c9a..dfd7cca1b4 100644 --- a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java +++ b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java @@ -242,7 +242,7 @@ public class SshdSession implements RemoteSession { @Override public void destroy() { if (channel.isOpen()) { - channel.close(true); + channel.close(false); } } } |