|
|
@ -489,19 +489,11 @@ public class HTTPClient {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
httpResponse = httpClient.execute(httpUriRequest, httpContext);
|
|
|
|
httpResponse = httpClient.execute(httpUriRequest, httpContext);
|
|
|
|
} catch (Exception ee) {
|
|
|
|
} catch (IOException e) {
|
|
|
|
// try again synchronized
|
|
|
|
ConnectionInfo.removeConnection(httpUriRequest.hashCode());
|
|
|
|
synchronized (httpClient) {
|
|
|
|
httpUriRequest.abort();
|
|
|
|
// without synchronization we get an InterruptedException here very often
|
|
|
|
throw new IOException("Client can't execute: " + e.getMessage());
|
|
|
|
try {
|
|
|
|
}
|
|
|
|
httpResponse = httpClient.execute(httpUriRequest, httpContext);
|
|
|
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
|
|
|
ConnectionInfo.removeConnection(httpUriRequest.hashCode());
|
|
|
|
|
|
|
|
httpUriRequest.abort();
|
|
|
|
|
|
|
|
throw new IOException("Client can't execute: " + e.getMessage());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void setHeaders(final HttpUriRequest httpUriRequest) {
|
|
|
|
private void setHeaders(final HttpUriRequest httpUriRequest) {
|
|
|
|