Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Aug 9, 2024
1 parent 8b211a8 commit 78d8bbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ public HttpClientConnectionManagerOptions withMaxConnectionIdleInMilliseconds(lo
return this;
}

/**
* @return Return the connection acquisition timeout in miliseconds
*/
public int getConnectionAcquisitionTimeoutInMilliseconds() {
return connectionAcquisitionTimeoutInMilliseconds;
}
Expand All @@ -306,6 +309,9 @@ public HttpClientConnectionManagerOptions withConnectionAcquisitionTimeoutInMill
}


/**
* @return Return the max pending connection acquisitions
*/
public int getMaxPendingConnectionAcquisitions() {
return maxPendingConnectionAcquisitions;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ private HttpClientConnectionManager createConnectionManager(URI uri, int numThre
.withSocketOptions(sockOpts)
.withTlsConnectionOptions(tlsConnectionOptions)
.withUri(uri)
.withMaxConnections(numConnections);
.withMaxConnections(numConnections)
.withConnectionAcquisitionTimeoutInMilliseconds(5000)
.withMaxPendingConnectionAcquisitions(10);

return HttpClientConnectionManager.create(options);
}
Expand Down

0 comments on commit 78d8bbd

Please sign in to comment.