mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew S Havener (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-755) Nio2Connector leaks socket if address is unresolvable or unreachable
Date Thu, 13 Jul 2017 19:32:00 GMT

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

Matthew S Havener commented on SSHD-755:
----------------------------------------

Awesome, thank you!

> Nio2Connector leaks socket if address is unresolvable or unreachable
> --------------------------------------------------------------------
>
>                 Key: SSHD-755
>                 URL: https://issues.apache.org/jira/browse/SSHD-755
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>         Environment: openjdk 1.8.0_111
>            Reporter: Matthew S Havener
>            Assignee: Goldstein Lyor
>             Fix For: 1.7.0
>
>         Attachments: mina.patch
>
>
> During an async client connect (with ClientChannel.Streaming.Async), if the hostname
is not resolvable, an UnresolvedAddressException is thrown from the "socket.connect(...)"
call in Nio2Connector.java. The socket was allocated before the connect, but it is not closed
in the "catch" block. This causes the socket to leak, and can eventually exhaust the file
descriptors in the system.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message