[ https://issues.apache.org/jira/browse/SSHD-755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Goldstein Lyor resolved SSHD-755. --------------------------------- Resolution: Fixed Fix Version/s: 1.7.0 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)