You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using let's say ForeverAgent({maxSockets: 5}) is clear (allocate up to 5 sockets), in order to create a pool with exactly one socket I need to pass options {maxSockets: 1, minSockets: 2} as minSockets means something like "minimal amount of sockets to be kept in the pool" + 1.
While using let's say ForeverAgent({maxSockets: 5}) is clear (allocate up to 5 sockets), in order to create a pool with exactly one socket I need to pass options {maxSockets: 1, minSockets: 2} as minSockets means something like "minimal amount of sockets to be kept in the pool" + 1.
Changing < to <= in https://github.com/mikeal/forever-agent/blob/master/index.js#L22 will fix it, however I understand that doing that will affect current users, so if that is not possible clarification in the doc will be good enough.
The text was updated successfully, but these errors were encountered: