Open rebareba opened 6 years ago
if don't do this ,it would call factory.create() again and again . or I can do like this outside.
const pool = genericPool.createPool(factory, options); pool.on('factoryCreateError', function (err) { const clientResourceRequest = pool._waitingClientsQueue.dequeue(); if (clientResourceRequest) { clientResourceRequest.reject(err); } })
Need change _waitingClientsQueue -> waitingClientsQueue and defined Pool.FACTORY_CREATE_ERROR = FACTORY_CREATE_ERROR;
Why is this not yet patched? Unable to use 3.x.
if don't do this ,it would call factory.create() again and again . or I can do like this outside.
Need change _waitingClientsQueue -> waitingClientsQueue and defined Pool.FACTORY_CREATE_ERROR = FACTORY_CREATE_ERROR;