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
- links to