ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klaas Prause (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IVY-1077) Add an operation (Ant Task) to close all open SSH connections in Jsch lib
Date Tue, 19 May 2009 08:01:48 GMT

     [ 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.


Mime
View raw message