From f3433db08252754a654ff9fbcaa12db64dfc4020 Mon Sep 17 00:00:00 2001 From: angryziber Date: Sun, 15 Jul 2007 20:53:36 +0000 Subject: [PATCH] ConnectException is now ignored as well git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@160 375186e5-ef17-0410-b0b6-91563547dcda --- src/net/azib/ipscan/fetchers/PortTextFetcher.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/net/azib/ipscan/fetchers/PortTextFetcher.java b/src/net/azib/ipscan/fetchers/PortTextFetcher.java index 4c72c153..496a4ced 100644 --- a/src/net/azib/ipscan/fetchers/PortTextFetcher.java +++ b/src/net/azib/ipscan/fetchers/PortTextFetcher.java @@ -9,6 +9,7 @@ package net.azib.ipscan.fetchers; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; +import java.net.ConnectException; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketTimeoutException; @@ -75,7 +76,11 @@ public class PortTextFetcher implements Fetcher { } } } + catch (ConnectException e) { + // no connection + } catch (SocketTimeoutException e) { + // no information } catch (IOException e) { LOG.log(Level.FINE, subject.getIPAddress().toString(), e);