My model for monitoring and restarting a session apparently is broken. Essentially I do:
JSch agent = new JSch(); Session session = agent.getSession(...); session.connect(); ... while (true) { if (session.isConnected()) { sleep(5 minutes); } else { session.disconnect(); session = agent.getSession(...); session.connect(); ... } } The initial connection works fine. Both remote and local forwards get setup. Some time later (days even) the session gets disconnected and fails to reconnect. So what is the preferred model for sensing a disconnect and getting it reconnected? Thanks, -pmr ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users