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] [Commented] (SSHD-877) org.apache.sshd.common.io.nio2.Nio2Acceptor#bind failed cause file descriptor leak
Date Fri, 21 Dec 2018 05:35:00 GMT

    [ https://issues.apache.org/jira/browse/SSHD-877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16726454#comment-16726454

Goldstein Lyor commented on SSHD-877:

I am looking into it - meanwhile, please try version 2.1.0 (latest) and let me know if it
occurs there as well. FYI, due to the very limited R&D resources at our disposal we do
not backpatch versions - and 1.7.0 is pretty old....

> org.apache.sshd.common.io.nio2.Nio2Acceptor#bind failed cause file descriptor leak
> ----------------------------------------------------------------------------------
>                 Key: SSHD-877
>                 URL: https://issues.apache.org/jira/browse/SSHD-877
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: java: 1.8
> os: centos7
> ssh client: xshell 5
>            Reporter: Zhenliang Su
>            Priority: Major
>         Attachments: Main.java, nio2acceptor.png
> When the binding fails in org.apache.sshd.common.io.nio2.Nio2Acceptor#bind, the file
descriptor will be leaked.
> Possible reasons:
> When AsynchronousServerSocketChannel#bind bind a port that has already been listened
to, the code will throw a BindException, but the code does not handle the exception, causing
the socket to have no chance to be closed. Eventually results in a limit on the number of
maximum file descriptors that exceed the system.
> Compile Main.java and run it on a linux machine.
> Use the client to connect to the server and the client to set up x11 forwarding. Using
lsof on the machine where the server is located, you can see the file descriptors that have
not been released.

This message was sent by Atlassian JIRA

View raw message