I have the exact same problem.

How do I detect keepalive failure?
Eve if I mark wantReply = true, I don't see a way to know if the reply was
indeed received.

anyone has tried this?



Regards,
Keshava.

On Mon, Aug 24, 2015 at 8:18 AM, hufaguang <hufaguang...@163.com> wrote:

>      as a ssh client,how to detect the  connection failure immediately.
> as a ssh client,we make a connection to the ssh server,and the connection
> is
> keepalive connection.But when happend the Network failure or the Server
> shut
> down,How can we detect the  connection failures immediately as a client.
>
>
>     The current situation is : when experience network failure,as a client
> we can not know the network failure
> immediately,we just begin to know the  network failure after a few minutes
> by send a message request(by catch a exception from the write socket
> operation...).   we has send the heartbeat(keepalive@ssh...)to the
> server,but is does not work...
>
>     is there any one know how to solve this problem?thanks!
>
>
>
> --
> View this message in context: http://apache-mina.10907.n7.
> nabble.com/SSHD-Client-as-a-ssh-client-how-to-detect-the-
> connection-failure-immediatly-tp48128.html
> Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
>

Reply via email to