An incorrect check of if (!self.pool).. caused the globalPool overwrite self.pool before a check later in the code if (self.pool === false) ... which is intended to turn off pooling, but is never triggered. The result was that the typical http.Agent is used, with it's default max connections of 5.
if (self.pool === false) ...
--Tim Shadel email@example.com
Fixed `pool: false` to not use the global agent
An incorrect check caused the `globalPool` to be used whenever the
`pool` option was set to `false`.
--Tim Shadel <firstname.lastname@example.org>