Skip to content
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

handle factoryCreate fail #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

handle factoryCreate fail #221

wants to merge 1 commit into from

Commits on Feb 2, 2018

  1. handle factoryCreate fail

    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;
    rebareba authored Feb 2, 2018
    Configuration menu
    Copy the full SHA
    d88d43d View commit details
    Browse the repository at this point in the history