Discussion:
[JSch-users] Dropped Connections using JSCH
M***@carolina.com
2014-02-24 20:56:03 UTC
Permalink
We are using JSCH in an application compiled with Oracle JDK 1.6

We obtain, occasionally, a connection refused exception.

Are there any known issues with JSCH regarding dropped connections?

If so, is there a best-practice for the tool that will avoid this problem?

Thank you.
_________________________________________________________________
This communication (including any attachments) contains information which
is confidential and may also be privileged. It is for the exclusive use of
the intended recipient(s). If you are not the intended recipient(s),
please do not distribute, copy or use this communication or the
information. Instead, if you have received this communication in error,
please notify the sender immediately and then destroy any copies of it.
Due to the nature of the Internet, the sender is unable to ensure the
integrity of this message and does not accept any liability or
responsibility for any errors or omissions (whether as the result of this
message having been intercepted or otherwise) in the contents of this
message. Any views expressed in this communication are those of the
individual sender, except where the sender specifically states them to be
the views of the company.
Jung, Volker
2014-02-25 07:52:40 UTC
Permalink
Dear Mark,

as far as my experience goes, JSch is pretty stable when it comes to connection stability. A "Connection refused" message occurrs more likely due to connection-configuration issues. In your case, I would aim at ruling out connection-configuration-based causes, like maxmimum number of sessions/connections/concurrent logins (have a look at your server configuration) or a simple timeout issue, first.

If you continue to get "Connection refused" messages, please provide more information to help us pin down the likely cause(s).

Greetings
Volker


Von: ***@carolina.com [mailto:***@carolina.com]
Gesendet: Montag, 24. Februar 2014 21:56
An: jsch-***@lists.sourceforge.net
Betreff: [JSch-users] Dropped Connections using JSCH

We are using JSCH in an application compiled with Oracle JDK 1.6

We obtain, occasionally, a connection refused exception.

Are there any known issues with JSCH regarding dropped connections?

If so, is there a best-practice for the tool that will avoid this problem?

Thank you.
_________________________________________________________________
This communication (including any attachments) contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please do not distribute, copy or use this communication or the information. Instead, if you have received this communication in error, please notify the sender immediately and then destroy any copies of it.
Due to the nature of the Internet, the sender is unable to ensure the
integrity of this message and does not accept any liability or responsibility for any errors or omissions (whether as the result of this message having been intercepted or otherwise) in the contents of this message. Any views expressed in this communication are those of the individual sender, except where the sender specifically states them to be the views of the company.
Atsuhiko Yamanaka
2014-02-25 08:07:52 UTC
Permalink
Hi,

+-From: ***@carolina.com ----------
|_Date: Mon, 24 Feb 2014 15:56:03 -0500 __
|
|We are using JSCH in an application compiled with Oracle JDK 1.6
|We obtain, occasionally, a connection refused exception.

I guess that exception has been thrown from
new java.net.Socket(host, 22);
That is a problem of the remote sshd server, not a problem in JSch, IMHO.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

Loading...