Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-1330

keep-alive handler on client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.10.0
    • 2.10.1, 2.11.0
    • None

    Description

      After a connection using the default SFTP client, I get lot's of WARN logs like the following:
      handleUnknownRequest(ClientConnectionService[ClientSessionImpl[xxx@sftp-intern.xxx.com/xx.xx.xx.xx:993]]) unknown global request: keepalive@proftpd.org

      It seems that the server send keep-alive messages to the client. The KeepAliveHandler handles this properly. It is per default in the server handlers. I propose to add it per default in the client handlers. This shouldn't have negative effect, should it? Adding it afterwards avoids the WARN logs.

      Implementation on ClientBuilder.DEFAULT_GLOBAL_REQUEST_HANDLERS would be trivial:

          public static final List<RequestHandler<ConnectionService>> DEFAULT_GLOBAL_REQUEST_HANDLERS
                  = List.of(OpenSshHostKeysHandler.INSTANCE, KeepAliveHandler.INSTANCE);
       

      (and eventually move the KeepAliveHandler from org.apache.sshd.server.global to org.apache.sshd.common.global).

      Attachments

        Issue Links

          Activity

            People

              lgoldstein Lyor Goldstein
              florian.hof Florian Hof
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: