diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2020-07-03 20:43:00 +0200 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2020-07-03 20:53:59 +0200 |
commit | 151f0cb82bacb678a4d0ff6eed4a04aacf1efa2e (patch) | |
tree | 69090570bd3119a7e27b48a92d18ad5971700ead /org.eclipse.jgit.junit.ssh | |
parent | 8774f541904ca9afba1786b4da14c1aedf4dda78 (diff) | |
download | jgit-151f0cb82bacb678a4d0ff6eed4a04aacf1efa2e.tar.gz jgit-151f0cb82bacb678a4d0ff6eed4a04aacf1efa2e.zip |
Add a test for upstream bug SSHD-1028
SSHD-1028:[1] server doesn't close server-side sessions properly when
client disconnects.
[1] https://issues.apache.org/jira/projects/SSHD/issues/SSHD-1028
Change-Id: I0d67f49e35abe8375cb1370a494dc01d0fb2c9b1
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.junit.ssh')
-rw-r--r-- | org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java b/org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java index 03e2855829..9aa4afcef1 100644 --- a/org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java +++ b/org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java @@ -22,6 +22,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Locale; +import java.util.Map; import org.apache.sshd.common.NamedResource; import org.apache.sshd.common.PropertyResolverUtils; @@ -298,6 +299,17 @@ public class SshTestGitServer { } /** + * Retrieves the server's property map. This is a live map; changing it + * affects the server. + * + * @return a live map of the server's properties + * @since 5.9 + */ + public Map<String, Object> getProperties() { + return server.getProperties(); + } + + /** * Starts the test server, listening on a random port. * * @return the port the server listens on; test clients should connect to |