You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2020/07/24 10:16:36 UTC

[GitHub] [zookeeper] saltos commented on a change in pull request #1411: Zookeeper 3112: fd leak due to UnresolvedAddressException on connect.

saltos commented on a change in pull request #1411:
URL: https://github.com/apache/zookeeper/pull/1411#discussion_r459968605



##########
File path: zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxnSocketNIO.java
##########
@@ -289,6 +289,10 @@ void connect(InetSocketAddress addr) throws IOException {
             LOG.error("Unable to open socket to " + addr);
             sock.close();
             throw e;
+        } catch (RuntimeException e) {
+            LOG.error("Unable to open socket to " + addr);

Review comment:
       No, because of Java 6 in this version. Sorry, but I have to use different catch blocks...




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org