Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

JAVA-674: Fixed exception messaging for number of concurrent requests…

… allowed
  • Loading branch information...
commit a38b467ca2d1ac14b2e4fbd3d1cd0033cdeb4dd2 1 parent b4eb41b
@jyemin jyemin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/com/mongodb/DBPortPool.java
View
2  src/main/com/mongodb/DBPortPool.java
@@ -208,7 +208,7 @@ protected int pick( int recommended, boolean couldCreate ){
public DBPort get() {
DBPort port = null;
if ( ! _waitingSem.tryAcquire() )
- throw new SemaphoresOut(_waitingSem.availablePermits() );
+ throw new SemaphoresOut(_options.connectionsPerHost * _options.threadsAllowedToBlockForConnectionMultiplier);
try {
port = get( _options.maxWaitTime );
Please sign in to comment.
Something went wrong with that request. Please try again.