You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the public constructor of ConnectionPool to create a pool with a custom keepAliveDuration, but this does not support configuring other timeouts (like readTimeoutMillis), which are all part of the internal constructor.
This means we can't simultaneously configure connect/read/write timeouts andkeepAliveDuration.
We use the public constructor of
ConnectionPool
to create a pool with a customkeepAliveDuration
, but this does not support configuring other timeouts (likereadTimeoutMillis
), which are all part of theinternal
constructor.This means we can't simultaneously configure connect/read/write timeouts and
keepAliveDuration
.For our specific use-case, here is where we configure custom timeouts, and here is where we create a custom connection pool immediately after, effectively overriding those timeouts.
Is there some way to accomplish this already? If not, I can think of a few solutions:
readTimeoutMillis
) to the public constructor ofConnectionPool
keepAliveDuration
on the defaultConnectionPool
without replacing itConnectionPool
Thanks!
The text was updated successfully, but these errors were encountered: