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

Goldstein Lyor edited comment on SSHD-755 at 7/13/17 4:46 AM:
--------------------------------------------------------------

Thanks for the patch - merged in (with a few minor changes) and [committed with 
due 
credit|https://github.com/apache/mina-sshd/commit/8ba704888a40f6dc4b1d5d11d4aac641fa0d9453]


was (Author: lgoldstein):
Thanks for the patch - merged in (with a few minor changes) and committed with 
due credit

> 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)

Reply via email to