Matt Kusnierz created SSHD-554:
----------------------------------

             Summary: Cannot set SO_KEEPALIVE on SshServer
                 Key: SSHD-554
                 URL: https://issues.apache.org/jira/browse/SSHD-554
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.14.0
            Reporter: Matt Kusnierz


When trying to create an SshServer and configuring SO_KEEPALIVE by setting:
getProperties().put(FactoryManager.SOCKET_KEEPALIVE, "true");

The following exception is thrown:
java.lang.UnsupportedOperationException: 'SO_KEEPALIVE' not supported
        at 
sun.nio.ch.AsynchronousServerSocketChannelImpl.setOption(AsynchronousServerSocketChannelImpl.java:187)
 ~[na:1.8.0]
        at 
sun.nio.ch.AsynchronousServerSocketChannelImpl.setOption(AsynchronousServerSocketChannelImpl.java:47)
 ~[na:1.8.0]
        at 
org.apache.sshd.common.io.nio2.Nio2Service.setOption(Nio2Service.java:94) 
~[sshd-core-0.14.0.jar:0.14.0]
        at 
org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:60) 
~[sshd-core-0.14.0.jar:0.14.0]
        at 
org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:74) 
~[sshd-core-0.14.0.jar:0.14.0]
        at org.apache.sshd.SshServer.start(SshServer.java:294) 
~[sshd-core-0.14.0.jar:0.14.0]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to