Skip to content

Commit a38b467

Browse files
committed
JAVA-674: Fixed exception messaging for number of concurrent requests allowed
1 parent b4eb41b commit a38b467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/com/mongodb/DBPortPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ protected int pick( int recommended, boolean couldCreate ){
208208
public DBPort get() {
209209
DBPort port = null;
210210
if ( ! _waitingSem.tryAcquire() )
211-
throw new SemaphoresOut(_waitingSem.availablePermits() );
211+
throw new SemaphoresOut(_options.connectionsPerHost * _options.threadsAllowedToBlockForConnectionMultiplier);
212212

213213
try {
214214
port = get( _options.maxWaitTime );

0 commit comments

Comments
 (0)