val options =
    WebClientOptions().setMaxPoolSize(1000)
        .setKeepAlive(true)
        .setKeepAliveTimeout(60 * 10)
        .setTrustAll(true)
        .setPoolCleanerPeriod(1000 * 60 * 10)
        .setIdleTimeoutUnit(TimeUnit.MINUTES)
        .setIdleTimeout(10)
        .setMaxWaitQueueSize(1000)
        .setConnectTimeout(1000 * 60 * 10)

webClient = WebClient.create(vertx, options)
vertx.http.clients.open-netsockets

It will return to 0 soon

1

There are 1 best solutions below

0
On

as you set ConnectTimeout with huge number, you also need to increase also both these properties KeepAliveTimeout and setIdleTimeout.