Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

reverted synchronization from SVN 7641

orbiter57ce1fb4915e
diff --git a/source/net/yacy/cora/protocol/http/HTTPClient.java b/source/net/yacy/cora/protocol/http/HTTPClient.java
index fd24f8fc3..0ae3a13ab 100644
--- a/source/net/yacy/cora/protocol/http/HTTPClient.java
+++ b/source/net/yacy/cora/protocol/http/HTTPClient.java
@@ -489,19 +489,11 @@ public class HTTPClient {
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());
- }
- }
- }
+ } catch (IOException e) {
+ ConnectionInfo.removeConnection(httpUriRequest.hashCode());
+ httpUriRequest.abort();
+ throw new IOException("Client can't execute: " + e.getMessage());
+ }
}
private void setHeaders(final HttpUriRequest httpUriRequest) {