myndzi / pool2

38 stars 8 forks source link

RangeError: Pool2: maxRequests must be a positive integer, Infinity given. #21

Closed gkorland closed 8 years ago

gkorland commented 8 years ago

I'm getting

RangeError: Pool2: maxRequests must be a positive integer, Infinity given.

While the docs says

maxRequests An integer greater than 0 (Infinity is also valid), to specify the maximum number of requests that the pool instance will allow. If the request queue exceeds this number, calls to acquire will fail with the error Pool is full.

myndzi commented 8 years ago

Sorry about that! Infinity is the default, you can just leave that option off to work around this until I can fix it.

myndzi commented 8 years ago

Just pushed a new version, should be good to go