Hi
Looking (again) at the code of ConnectionPool, I found out that basically when we want to borrow a connection, the least used connection is selected. Then if the number borrowed exceeds the max simultaneous usage (and the pool max size is not reached) then we open a new connection. Sounds good to me.
However I also understand that if the number borrowed exceeds the available in-process then we wait for a connection to be available. By default, the max in-process is 4 and the max simultaneous usage is 16. It seems those default values prevent from considering a new connection, doesn't it ? It seems we would wait for an available connection before we could consider a new connection. Am I missing something ?
I read the comment block about the "busy-ness" but still I'm a bit confused by the max number of in-process requests and the max simultaneous usage.
I'm trying to understand why the pool size seems to be stuck at min pool size. If someone could give some details about this, I would be very grateful.
Best regards,
Ramzi