Skip to content

Commit

Permalink
Merge pull request #62 from yma96/master
Browse files Browse the repository at this point in the history
Add debug log for request timeout value
  • Loading branch information
yma96 authored Aug 15, 2024
2 parents 1cc0f5e + f570bea commit 40b4a9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/commonjava/util/jhttpc/HttpFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public CloseableHttpClient createClient( final SiteConfig location, final List<H
}

ConnectionManagerTracker managerWrapper = connectionCache.getTrackerFor( connConfig );
logger.debug( "Using connection manager tracker: {}", managerWrapper );
logger.debug( "Using the connection manager tracker: {}", managerWrapper );
builder.setConnectionManager( managerWrapper.acquire() );

if ( location.getProxyHost() != null )
Expand All @@ -150,6 +150,7 @@ public CloseableHttpClient createClient( final SiteConfig location, final List<H
}

final int timeout = 1000 * location.getRequestTimeoutSeconds();
logger.debug( "Request timeout value: {}", timeout );
builder.setDefaultRequestConfig( RequestConfig.custom()
// .setConnectionRequestTimeout( timeout )
.setSocketTimeout( timeout )
Expand Down

0 comments on commit 40b4a9e

Please sign in to comment.