Arunapotti commented on issue #95: SSHD-901 Provide 'wantReply' option for 
client keep-alive heartbeat global request
URL: https://github.com/apache/mina-sshd/pull/95#issuecomment-609048804
 
 
   Hi Goldstein,
   
   OpenSSH has ClinetAliveInterval support that the servers can use to detect
   and clean up dead/dangling clients besides for the keep-alive support.
   
   ClientAliveInterval <http://man.openbsd.org/sshd_config#ClientAliveInterval>
   Sets a timeout interval in seconds after which if no data has been received
   from the client, sshd(8) <http://man.openbsd.org/sshd.8>will send a message
   through the encrypted channel to request a response from the client. The
   default is 0, indicating that these messages will not be sent to the client.
   
   I am looking for an equivalent option with your SSHD.
   
   Thanks
   
   On Sat, Apr 4, 2020 at 8:02 AM Lyor Goldstein <[email protected]>
   wrote:
   
   > to close any dangling client sessions from server due to network issues
   >
   > Please bear in mind that this mechanism is a *client side* one - i.e., it
   > is used by the client in order to detect a non-responsive server sooner
   > than the regular TCP/IP timeout would. AFAIK there is no server side
   > mechanism to detect "dangling" client sessions. We do have an idle-timeout
   > mechanism that closes a session if there is no traffic for the specified
   > amount of time (current default=10 minutes). The purpose of the keepalive@
   > mechanism (besides early detection) is also to generate some traffic so
   > that the client does not time out if there is no traffic. By activating the
   > wantReply option (default=disabled) we try to ensure that the server does
   > not time out due to no traffic. Therefore, the keepalive@ mechanism is
   > not likely to detect "dangling clients" on the server side.
   >
   > See
   > 
https://github.com/apache/mina-sshd/blob/master/docs/client-setup.md#keeping-the-session-alive-while-no-traffic
   > on client heartbeat details, and the code for SessionHelper#getIdleTimeout
   >
   > There is a way to do this on the server side but it is rather
   > *non-standard* (which we support) and it involves sending
   > {{SSH_MSG_IGNORE}} messages from the server to the client thus maintaining
   > some traffic on the session as well as detecting "dangling clients". See
   > setSessionHeartbeat API with a {{HeartbeatType}} of IGNORE.
   >
   > —
   > You are receiving this because you commented.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/mina-sshd/pull/95#issuecomment-609041673>, or
   > unsubscribe
   > 
<https://github.com/notifications/unsubscribe-auth/AANJADEGDOWGAUKGOZP5PGTRK5DZNANCNFSM4G2TYU5Q>
   > .
   >
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to