http: logically respect maxSockets
authorfengmk2 <fengmk2@gmail.com>
Mon, 23 Mar 2015 11:33:13 +0000 (19:33 +0800)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Fri, 17 Apr 2015 16:20:44 +0000 (12:20 -0400)
commit7956a13dad02b47d3b61b593b5f25055372ce93c
treeddd2e8a615fbe808423fc3ea8dcd14e1dc27af59
parentcd60ff03281a7e5a2cf0f7a2349303f1d44bb778
http: logically respect maxSockets

Allows the number of pooled free sockets to equal maxSockets.
Previously it would only allow maxSockets - 1.

PR-URL: https://github.com/iojs/io.js/pull/1242
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Christian Tellnes <christian@tellnes.no>
lib/_http_agent.js
test/parallel/test-http-agent-maxsockets.js [new file with mode: 0644]