You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Klaas Prause (JIRA)" <ji...@apache.org> on 2009/05/19 10:01:48 UTC
[jira] Updated: (IVY-1077) Add an operation (Ant Task) to close all
open SSH connections in Jsch lib
[ https://issues.apache.org/jira/browse/IVY-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Klaas Prause updated IVY-1077:
------------------------------
Attachment: IvyCloseSshSessions.java
SshCache.java
Naive implementation example that works.
Basically I added one method to SshCache:
public void clearAllSessions() {
Iterator iterator = sessionCacheMap.values().iterator();
while (iterator.hasNext()) {
Entry entry = (Entry) iterator.next();
clearSession(entry.getSession());
}
}
and provided one AntTask to call it. This works for the Buildr integration by manually calling the ant task to close all open connections.
> Add an operation (Ant Task) to close all open SSH connections in Jsch lib
> -------------------------------------------------------------------------
>
> Key: IVY-1077
> URL: https://issues.apache.org/jira/browse/IVY-1077
> Project: Ivy
> Issue Type: Improvement
> Reporter: Klaas Prause
> Priority: Minor
> Attachments: IvyCloseSshSessions.java, SshCache.java
>
>
> see the bug report: IVY-1075 for the ratio of this request.
> The SSH connection cache prevents the VM to terminate without a call to System.exit(0). It would be great to have the possibility to close all connections explicitly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.