Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
removed synchronization again...
orbiter7c8e764201ed
diff --git a/source/net/yacy/cora/protocol/http/HTTPClient.java b/source/net/yacy/cora/protocol/http/HTTPClient.javaindex c5c70660a..fd24f8fc3 100644--- a/source/net/yacy/cora/protocol/http/HTTPClient.java+++ b/source/net/yacy/cora/protocol/http/HTTPClient.java@@ -487,15 +487,20 @@ public class HTTPClient {assert !hrequest.expectContinue();}- synchronized (httpClient) {- // without synchronization we get an interruptedException here very often- try {- httpResponse = httpClient.execute(httpUriRequest, httpContext);- } catch (IOException e) {- ConnectionInfo.removeConnection(httpUriRequest.hashCode());- httpUriRequest.abort();- throw new IOException("Client can't execute: " + e.getMessage());- }+ try {+ httpResponse = httpClient.execute(httpUriRequest, httpContext);+ } catch (Exception ee) {+ // try again synchronized+ synchronized (httpClient) {+ // without synchronization we get an InterruptedException here very often+ try {+ httpResponse = httpClient.execute(httpUriRequest, httpContext);+ } catch (IOException e) {+ ConnectionInfo.removeConnection(httpUriRequest.hashCode());+ httpUriRequest.abort();+ throw new IOException("Client can't execute: " + e.getMessage());+ }+ }}}