-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pendingacquiretimeout is not working as expected #219
Comments
@manaldush This log:
Is printed at the very beginning when there are no connections in the pool. So it is accurate - no active, no inactive, 5 pending and the connection pool will establish a new connection in order to process the pending requests. As it is described in the documentation
So this timeout is for the acquire operation, whether the connection pool will provide an already opened connection or it will establish a new connection, depends on the state of the pool. |
@violetagg, thanks for answer, but it is still not clear 06/05/2024 19:06:40.881 [DEBUG] reactor.netty.resources.PooledConnectionProvider:reactor-http-nio-39 [Loggers.java:259:debug] {} > [b7fc1d8f, L:/127.0.0.1:59932 - R:localhost/127.0.0.1:8000] Channel connected, now: 1 active connections, 0 inactive connections and 4 pending acquire requests. In 4 sec I still have requests in pending queue, but pendingAcquireTimeout = 200ms, and I expected that pending acquire operation for pending requests should be timeout at 19:06:41, isn't that? |
@manaldush I agree. There is an issue in Reactor Pool - moving the issue to the proper project. |
Issue can be reproduced with
|
It seems that pendingacquiretimeout is not working as expected.
I expected that it is timeout to acquire open connection from pool. So I expected to see timeouts occurred in my unit test in case of connection lack , but timeout is ignored and requests still wait connenction.
In attached log pendingacquiretimeout = 200ms
and some of requests got into pending queue
But inspite of timeout should occur for some requests, its still live in queue and wait connection
Logs and test are attached
log.txt
ReactorNettyPoolWebfluxTests2.txt
dependencies
io.projectreactor.netty reactor-netty-http 1.0.33 io.projectreactor.netty reactor-netty-core 1.0.33java version 1.8
OS windows 11
The text was updated successfully, but these errors were encountered: