reverted synchronization from SVN 7641

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7643 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 17530ca7b5
commit 57ce1fb491

@ -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) {

Loading…
Cancel
Save