mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goldstein Lyor (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SSHD-554) Cannot set SO_KEEPALIVE on SshServer
Date Thu, 20 Aug 2015 06:18:45 GMT

     [ https://issues.apache.org/jira/browse/SSHD-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Goldstein Lyor resolved SSHD-554.
---------------------------------
    Resolution: Fixed

Added a test for it - see _Nio2ServiceTest_

> 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
>            Assignee: Goldstein Lyor
>             Fix For: 1.1.0
>
>
> 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)

Mime
View raw message