You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "MayDay (JIRA)" <ji...@apache.org> on 2017/10/26 06:45:00 UTC

[jira] [Comment Edited] (SSHD-780) How does the HeartBeat work?

    [ https://issues.apache.org/jira/browse/SSHD-780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16220042#comment-16220042 ] 

MayDay edited comment on SSHD-780 at 10/26/17 6:44 AM:
-------------------------------------------------------

If the server is out of my control,how to make the heartbeat( which send a request and don't wait for the reponse) useful.

And the default heartbeat buffer is {color:#205081}false {color}(see [ClientConnectionService]). Accoding the {color:#205081}rfc4254{color}, The recipient will respond to this message with   SSH_MSG_REQUEST_SUCCESS or SSH_MSG_REQUEST_FAILURE if 'want reply' is   {color:#205081}TRUE{color}. Is it a bug?





was (Author: mayday):

If the server is out of my control,how to make the heartbeat( which send a request and don't wait for the reponse) useful.

And the default heartbeat buffer is {color:#205081}false {color}(see [https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/client/session/ClientConnectionService.java]). Accoding the {color:#205081}rfc4254{color}, The recipient will respond to this message with   SSH_MSG_REQUEST_SUCCESS or SSH_MSG_REQUEST_FAILURE if 'want reply' is   {color:#205081}TRUE{color}. Is it a bug?




> How does the HeartBeat work?
> ----------------------------
>
>                 Key: SSHD-780
>                 URL: https://issues.apache.org/jira/browse/SSHD-780
>             Project: MINA SSHD
>          Issue Type: Question
>    Affects Versions: 1.4.0
>         Environment: jdk1.8.0
>            Reporter: MayDay
>
> How does the HeartBeat work?
> it only send keepAlive every interal time,but not to check the reply of the keepAlive timeout.
> how does the client know that the server is available.
> Or does other param need to set to make the client heartbeat work?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)