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] [Updated] (SSHD-755) Nio2Connector leaks socket if address is unresolvable or unreachable
Date Mon, 10 Jul 2017 20:26:00 GMT

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

Matthew S Havener updated SSHD-755:
-----------------------------------
    Attachment:     (was: mina.patch)

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