"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/InternalExecRuntime.java" between
httpcomponents-client-5.2-src.tar.gz and httpcomponents-client-5.2.1-src.tar.gz

About: Apache HttpComponents Client provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. Java sources.

InternalExecRuntime.java  (httpcomponents-client-5.2-src):InternalExecRuntime.java  (httpcomponents-client-5.2.1-src)
skipping to change at line 119 skipping to change at line 119
final ConnectionEndpoint connectionEndpoint = connRequest.get(co nnectionRequestTimeout); final ConnectionEndpoint connectionEndpoint = connRequest.get(co nnectionRequestTimeout);
endpointRef.set(connectionEndpoint); endpointRef.set(connectionEndpoint);
reusable = connectionEndpoint.isConnected(); reusable = connectionEndpoint.isConnected();
if (cancellableDependency != null) { if (cancellableDependency != null) {
cancellableDependency.setDependency(this); cancellableDependency.setDependency(this);
} }
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("{} acquired endpoint {}", id, ConnPoolSupport.get Id(connectionEndpoint)); log.debug("{} acquired endpoint {}", id, ConnPoolSupport.get Id(connectionEndpoint));
} }
} catch(final TimeoutException ex) { } catch(final TimeoutException ex) {
connRequest.cancel();
throw new ConnectionRequestTimeoutException(ex.getMessage()); throw new ConnectionRequestTimeoutException(ex.getMessage());
} catch(final InterruptedException interrupted) { } catch(final InterruptedException interrupted) {
connRequest.cancel();
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
throw new RequestFailedException("Request aborted", interrupted) ; throw new RequestFailedException("Request aborted", interrupted) ;
} catch(final ExecutionException ex) { } catch(final ExecutionException ex) {
connRequest.cancel();
Throwable cause = ex.getCause(); Throwable cause = ex.getCause();
if (cause == null) { if (cause == null) {
cause = ex; cause = ex;
} }
throw new RequestFailedException("Request execution failed", cau se); throw new RequestFailedException("Request execution failed", cau se);
} }
} else { } else {
throw new IllegalStateException("Endpoint already acquired"); throw new IllegalStateException("Endpoint already acquired");
} }
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)