Skip to content

Commit bc48359

Browse files
committed
Disable Connection Pooling
Currently, connection pooling in reactor-netty is enabled by default during use of the client. We suspect that there may be some issues with this connection pooling and as part of testing, we're doing to disable it universally. If this change improves the behavior of the client, then it will stay this way, for all users; i.e. it will not be a configurable option. At the time that we have more confidence in the connection pooling, it will be re-enabled for all users, once again without a configuration property.
1 parent 5411726 commit bc48359

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public Integer getConnectionPoolSize() {
7373
public HttpClient getHttpClient() {
7474
return HttpClient.create(options -> {
7575
options
76+
.disablePool()
7677
.option(SO_SNDBUF, SEND_BUFFER_SIZE)
7778
.option(SO_RCVBUF, RECEIVE_BUFFER_SIZE)
7879
.poolResources(PoolResources.fixed(this.name, getConnectionPoolSize()));

0 commit comments

Comments
 (0)