From a812fb86cc7611e3921417ae0f5cd31f2b08c459 Mon Sep 17 00:00:00 2001 From: theli Date: Mon, 29 Aug 2005 11:39:10 +0000 Subject: [PATCH] *) Port Forwarding Feature does not detect broken connection properly. Therefor a test-request was added to the isConnected function to detect broken connections and to keep open connections alive git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@596 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/hello.java | 20 +++++++++++-------- .../server/serverPortForwardingSch.java | 6 +++++- source/de/anomic/yacy/yacyClient.java | 2 ++ 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java index b83004001..0678674f1 100644 --- a/htroot/yacy/hello.java +++ b/htroot/yacy/hello.java @@ -102,14 +102,18 @@ public class hello { boolean isLocalIP = false; if (serverCore.portForwardingEnabled) { try { - InetAddress clientAddress = InetAddress.getByName(clientip); - InetAddress[] localAddress = InetAddress.getAllByName(InetAddress.getLocalHost().getHostName()); - for (int i=0; i