When I try to acquire an client from the pool using several requests at once I allway get the feeling that only one of them is being borrowed while the others should also be used if (when acquiring)... I keep getting:
"spareResourceCapacity": 15,
"size": 5,
"available": 4,
"borrowed": 1, // this is the only value that changes from 1 <-> 0
"pending": 0,
"max": 15,
"min": 5
Is it a bug or is there any validation to perform on a new resource acquiring?
I simple acquire a resource from the pool await socketPool.acquire(); and then release/destroy it after usage.
Hi! I'm using the generic-pool and node '.net' in nodeJs to create a socket pool. These are the factory methods I'm using:
and these are the options I'm using:
When I try to acquire an client from the pool using several requests at once I allway get the feeling that only one of them is being borrowed while the others should also be used if (when acquiring)... I keep getting:
Is it a bug or is there any validation to perform on a new resource acquiring? I simple acquire a resource from the pool
await socketPool.acquire();
and then release/destroy it after usage.