Skip to content

Commit 931c823

Browse files
committed
Enlarge Connection Pool
Previously, the connection pool was the same size as the number of threads on a system. This change updates that value to double the number of threads on a system so that there is some potential for single-thread connection concurrency in all systems, especially in systems with only a single thread. [resolves #606]
1 parent 8e54346 commit 931c823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/_DefaultConnectionContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ abstract class _DefaultConnectionContext implements ConnectionContext {
6565

6666
@Value.Default
6767
public Integer getConnectionPoolSize() {
68-
return PoolResources.DEFAULT_POOL_MAX_CONNECTION;
68+
return 2 * PoolResources.DEFAULT_POOL_MAX_CONNECTION;
6969
}
7070

7171
@Override

0 commit comments

Comments
 (0)